c - nvcc with avx support cannot find gcc builtin intrinsics -
This is my first question; -)
I try to use in the CUDA application (ccminer) but NVCX shows an error:
/ usr / local / cuda / bin / nvcc - Xcompiler "-Wall -mavx" -O3-I -Xptxas "-abi = no -v" -gencode = arch = compute_50, code = \ "sm_50, compute_50 \" --maxrregcount = 80 --ptxas-options = -v -I./compat/jansson -o x11 / X11.oc x11 / x11.cu /usr/lib/gcc/x86_64-linux-gnu/4.8/include/avxintrin.h(118): Error: identifier "__builtin_ia32_addpd256" undefined [...]
This is just the first error, many 'undefined' Biltton functions are: - (
'C / C Everything is fine for the program ++ -. With or without CPP extension .cu - error :-( what do i do? I can compile ccminer, but i can not add avc intrinsics in .cu files - only .c files I use Intel intrinsics GCC
Thanks in advance.
Linux Mint (Ubuntu 13) 64 bit, GCC 4.8.1, Kuda 6.5.
I do not expect APX to work on the GPU. The shortest part of the CU file is CPU based code which I want to vector.
Here is an example to reproduce this error. I took a simple example from the following:
The line added at the beginning:
#include & lt; and tried to compile with the command:
nvcc cudahello.cu -Xcompiler -mavx An error occurred:
/usr/lib/gcc/x86_64-linux-gnu/4.8/include/avxintrin.h (118): Error: The identifier "__builtin_ia32_addpd256" is undefined
Without the same code #include & lt; Immintrin.h & gt; Compiled without problems. Here is the full code:
#include to get the error
compiled with nvcc cudahello.cu -Xcompiler -mavx
nvcc cudahello.cu
to clear.
I think I have an answer. Functions like:
_builtin_ia32_addpd256 Designed in GCC and NVCC, they are not aware of them as immintrin.h , So NTPC returns returns to errors, while. Therefore, we can not mix Queda FEATURES with built-in GCC functions in one file.
Comments
Post a Comment