24navigation/build/fast_lio/CMakeFiles/FindOpenMP/OpenMPTryFlag.cpp

13 lines
172 B
C++
Raw Normal View History

2024-03-08 16:26:56 +08:00
#include <omp.h>
int main(void) {
#ifdef _OPENMP
omp_get_max_threads();
return 0;
#elif defined(__HIP_DEVICE_COMPILE__)
return 0;
#else
breaks_on_purpose
#endif
}