Closed yfzhang closed 5 years ago
Try using an older version of cmake, like 3.5 or 3.6.
It did not work with 3.6 :cry:
Hi guys
I have a issue during compile "catkin_make" .
/usr/lib/gcc/x86_64-linux-gnu/5/include/mwaitxintrin.h(36): error: identifier "__builtin_ia32_monitorx" is undefined
I saw same problem in tensor flow GitHub page.Here I have added this flags to "CMakeLists.txt" exactly like this:
set( CMAKE_CXX_FLAGS " -D_MWAITXINTRIN_H_INCLUDED -D_FORCE_INLINES ")
in top of "CMakeLists.txt" after set(_cmd "catkin_find_pkg" "catkin" "${CMAKE_SOURCE_DIR}")
but doesn't effect.
I verified my cuda before compile :
`+-----------------------------------------------------------------------------+ | NVIDIA-SMI 410.79 Driver Version: 410.79 CUDA Version: 10.0 | |-------------------------------+----------------------+----------------------+ | GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC | | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. | |===============================+======================+======================| | 0 GeForce MX150 Off | 00000000:01:00.0 Off | N/A | | N/A 53C P3 N/A / N/A | 546MiB / 4042MiB | 4% Default | +-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+ | Processes: GPU Memory | | GPU PID Type Process name Usage | |=============================================================================| | 0 1149 G /usr/lib/xorg/Xorg 28MiB | | 0 1544 G /usr/lib/xorg/Xorg 291MiB | | 0 1981 G compiz 78MiB | | 0 2249 G /proc/self/exe 18MiB | | 0 2411 G ...quest-channel-token=5297298698446075686 103MiB | +-----------------------------------------------------------------------------+
and
nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2015 NVIDIA Corporation Built on Tue_Aug_11_14:27:32_CDT_2015 Cuda compilation tools, release 7.5, V7.5.17
Please help me Thanks and best regards Amir
@farahaniamir08 I had the same error message. Make sure your versions of GCC and NVCC are compatible. In my case, using GCC 5.4 Cuda V7.5 is not supported and updating to NVCC 10.1 solved the issue. You might find this useful
I had the same issue after upgrading something and I went back to older versions:
cmake version 3.5.1 gcc version 6.5.0 nvcc version 9.2
and it compiles without error.
Basically followed the installations instructions, but got the following error. Some variables in the .cu files seems not to be defined.