I am trying to make a C code and keep getting the following errors:
/opt/nvidia/hpc_sdk/Linux_x86_64/2020/cuda/bin/nvcc -c -O3 -I/opt/nvidia/hpc_sdk/Linux_x86_64/2020/cuda/include -I/opt/nvidia/hpc_sdk/Linux_x86_64/2020/math_libs/include lusol_cusparse.c
In file included from /usr/include/stdlib.h:55:0,
from /opt/nvidia/hpc_sdk/Linux_x86_64/21.3/compilers/include/stdlib.h:13,
from lusol_cusparse.c:1:
/opt/nvidia/hpc_sdk/Linux_x86_64/21.3/compilers/include/bits/floatn.h:60:17: error: two or more data types in declaration specifiers
typedef float _Float32;
^~~~~~~~
/opt/nvidia/hpc_sdk/Linux_x86_64/21.3/compilers/include/bits/floatn.h:63:18: error: two or more data types in declaration specifiers
typedef double _Float64;
^~~~~~~~
/opt/nvidia/hpc_sdk/Linux_x86_64/21.3/compilers/include/bits/floatn.h:74:18: error: two or more data types in declaration specifiers
typedef double _Float32x;
^~~~~~~~~
/opt/nvidia/hpc_sdk/Linux_x86_64/21.3/compilers/include/bits/floatn.h:78:25: error: two or more data types in declaration specifiers
typedef long double _Float64x;
^~~~~~~~~
Makefile:56: recipe for target 'lusol_cusparse.o' failed
I am not sure if this is an error with the gcc version I have or something else since it seems gcc 7+ has _Float32 as a compiler built-in.
I am not sure what I am missing.
Miko
- Predictive Science Inc. Intern