Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

make error when compile with CUDA #3298

Closed
finlay-liu opened this issue Sep 14, 2016 · 2 comments
Closed

make error when compile with CUDA #3298

finlay-liu opened this issue Sep 14, 2016 · 2 comments

Comments

@finlay-liu
Copy link

Hello

when i make with (CUDA = 0), it everything ok.
then make CUDA = 1, some error about make

/usr/lib/gcc/x86_64-linux-gnu/5/include/mwaitxintrin.h(42): error: identifier "__builtin_ia32_mwaitx" is undefined /usr/lib/gcc/x86_64-linux-gnu/5/include/mwaitxintrin.h(36): error: identifier "__builtin_ia32_monitorx" is undefined /usr/lib/gcc/x86_64-linux-gnu/5/include/mwaitxintrin.h(42): error: identifier "__builtin_ia32_mwaitx" is undefined

it seems gcc5 do not match cuda, but i already make caffe with success. what can i do ? . Thx.

my PC Ubuntu: CUDA7.5 cudnn 5.1.3 gcc5.4 gtx960

@finlay-liu finlay-liu changed the title GCC error when compile with CUDA make error when compile with CUDA Sep 14, 2016
@tqchen
Copy link
Member

tqchen commented Sep 14, 2016

This is a problem of NVCC not MXNet, please note that CUDA7.5 does not support gcc-5 and you can do CUDA8.0rc which comes with a patch for gcc-5

@tqchen tqchen closed this as completed Sep 14, 2016
@captainpete
Copy link

Try ADD_CFLAGS = -D_MWAITXINTRIN_H_INCLUDED in config.mk.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants