mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-24 21:10:33 +05:00
util functions to get compile-time simd size and range check settings
This commit is contained in:
parent
93e188688a
commit
f0e7f843c3
@ -1,5 +1,7 @@
|
||||
#include "ngcore_api.hpp"
|
||||
#include "utils.hpp"
|
||||
#include "logging.hpp"
|
||||
#include "simd_generic.hpp"
|
||||
|
||||
#ifndef WIN32
|
||||
#include <cxxabi.h>
|
||||
@ -95,5 +97,19 @@ namespace ngcore
|
||||
int printmessage_importance = 0;
|
||||
bool NGSOStream :: glob_active = true;
|
||||
|
||||
NGCORE_API int GetCompiledSIMDSize()
|
||||
{
|
||||
return GetDefaultSIMDSize();
|
||||
}
|
||||
|
||||
NGCORE_API bool IsRangeCheckEnabled()
|
||||
{
|
||||
#ifdef NETGEN_ENABLE_CHECK_RANGE
|
||||
return true;
|
||||
#else
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
|
||||
} // namespace ngcore
|
||||
|
||||
|
@ -198,6 +198,8 @@ namespace ngcore
|
||||
~MyLock () { mutex.unlock(); }
|
||||
};
|
||||
|
||||
NGCORE_API int GetCompiledSIMDSize();
|
||||
NGCORE_API bool IsRangeCheckEnabled();
|
||||
|
||||
} // namespace ngcore
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user