Thread: llrCUDA
View Single Post
Old 2021-08-28, 16:51   #376
henryzz
Just call me Henry
 
henryzz's Avatar
 
"David"
Sep 2007
Liverpool (GMT/BST)

135418 Posts
Default

I have a more recent version of CUDA than you linked in(11.4 rather than 8). As such I tried to recompile. I got the following error:
Code:
/usr/local/cuda/bin/nvcc -g -O3 -I/usr/local/cuda/include -I. -Wno-deprecated-gpu-targets lprime.cu -c
Llr.c(7786): error: more than one instance of overloaded function "abs" matches the argument list:
            function "abs(int)"
/usr/local/cuda/include/crt/math_functions.h(213): here
            function "std::abs(__int128)"
/usr/include/c++/9/bits/std_abs.h(85): here
            function "std::abs(long double)"
/usr/include/c++/9/bits/std_abs.h(79): here
            function "std::abs(float)"
/usr/include/c++/9/bits/std_abs.h(75): here
            function "std::abs(double)"
/usr/include/c++/9/bits/std_abs.h(71): here
            function "std::abs(long long)"
/usr/include/c++/9/bits/std_abs.h(61): here
            function "std::abs(long)"
/usr/include/c++/9/bits/std_abs.h(56): here
            argument types are: (unsigned long)

Llr.c(7786): error: more than one instance of overloaded function "abs" matches the argument list:
            function "abs(int)"
/usr/local/cuda/include/crt/math_functions.h(213): here
            function "std::abs(__int128)"
/usr/include/c++/9/bits/std_abs.h(85): here
            function "std::abs(long double)"
/usr/include/c++/9/bits/std_abs.h(79): here
            function "std::abs(float)"
/usr/include/c++/9/bits/std_abs.h(75): here
            function "std::abs(double)"
/usr/include/c++/9/bits/std_abs.h(71): here
            function "std::abs(long long)"
/usr/include/c++/9/bits/std_abs.h(61): here
            function "std::abs(long)"
/usr/include/c++/9/bits/std_abs.h(56): here
            argument types are: (unsigned long)

Llr.c(7863): error: more than one instance of overloaded function "abs" matches the argument list:
            function "abs(int)"
/usr/local/cuda/include/crt/math_functions.h(213): here
            function "std::abs(__int128)"
/usr/include/c++/9/bits/std_abs.h(85): here
            function "std::abs(long double)"
/usr/include/c++/9/bits/std_abs.h(79): here
            function "std::abs(float)"
/usr/include/c++/9/bits/std_abs.h(75): here
            function "std::abs(double)"
/usr/include/c++/9/bits/std_abs.h(71): here
            function "std::abs(long long)"
/usr/include/c++/9/bits/std_abs.h(61): here
            function "std::abs(long)"
/usr/include/c++/9/bits/std_abs.h(56): here
            argument types are: (unsigned long)

Llr.c(7863): error: more than one instance of overloaded function "abs" matches the argument list:
            function "abs(int)"
/usr/local/cuda/include/crt/math_functions.h(213): here
            function "std::abs(__int128)"
/usr/include/c++/9/bits/std_abs.h(85): here
            function "std::abs(long double)"
/usr/include/c++/9/bits/std_abs.h(79): here
            function "std::abs(float)"
/usr/include/c++/9/bits/std_abs.h(75): here
            function "std::abs(double)"
/usr/include/c++/9/bits/std_abs.h(71): here
            function "std::abs(long long)"
/usr/include/c++/9/bits/std_abs.h(61): here
            function "std::abs(long)"
/usr/include/c++/9/bits/std_abs.h(56): here
            argument types are: (unsigned long)

4 errors detected in the compilation of "lprime.cu".
make: *** [Makefile:11: lprime.o] Error 1
henryzz is offline   Reply With Quote