tromp / cuckoo

a memory-bound graph-theoretic proof-of-work system
Other
822 stars 173 forks source link

Cuckaroo cuda build fails: undefined avx builtin intrinsics #68

Closed ThanasisKonst closed 5 years ago

ThanasisKonst commented 5 years ago

I was unable to build Cuckaroo on ubuntu 16.04 (x86_64) with a GTX 1070 and CUDA 10.0 installed. I am attempting to build by executing:

make cuda29

The output that I am getting is the following:

/usr/local/cuda-10.0/bin/nvcc -o cuda29 -DEDGEBITS=29 -arch sm_35 mean.cu ../crypto/blake2b-ref.c
/usr/lib/gcc/x86_64-linux-gnu/6/include/avx512fintrin.h(12943): error: identifier "__builtin_ia32_kmov16" is undefined

1 error detected in the compilation of "/tmp/tmpxft_00004028_00000000-8_mean.cpp1.ii".
Makefile:53: recipe for target 'cuda29' failed

I am working on commit b39eb42054c15eb9af41e17286ebc21d2875deb7

This might help: https://devtalk.nvidia.com/default/topic/780902/nvcc-with-avx-support-cannot-find-gcc-builtin-intrinsics/

tromp commented 5 years ago

I think my latest commit should fix this. Please try...

ThanasisKonst commented 5 years ago

Thanks a lot ! I can confirm that the issue is now fixed.