wilicc / gpu-burn

Multi-GPU CUDA stress test
BSD 2-Clause "Simplified" License
1.45k stars 299 forks source link

Fails to build with `error: invalid combination of type specifiers` [GCC 13.2.1]. #99

Open dreirund opened 9 months ago

dreirund commented 9 months ago

With GCC 13.2.1, it fails to build for me:

g++ -march=native -mtune=native -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -fstack-clash-protection -fcf-protection -flto=auto -O3 -Wno-unused-result -I/opt/cuda/include -std=c++11 -c gpu_burn-drv.cpp
PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/opt/android-sdk/emulator:/opt/android-sdk/cmdline-tools/latest/bin:/opt/android-sdk/platform-tools:/usr/lib/jvm/default/bin:/opt/rocm-6.0.2/bin:/opt/rocm-6.0.2/hip/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/usr/local/bin:/usr/local/sbin:/home/felics/bin::." /opt/cuda/bin/nvcc -I/opt/cuda/include -arch=compute_50 -ptx compare.cu -o compare.ptx
/usr/include/bits/floatn.h(86): error: invalid combination of type specifiers
  typedef __float128 _Float128;
                     ^

/usr/include/bits/floatn-common.h(214): error: invalid combination of type specifiers
  typedef float _Float32;
                ^

/usr/include/bits/floatn-common.h(251): error: invalid combination of type specifiers
  typedef double _Float64;
                 ^

/usr/include/bits/floatn-common.h(268): error: invalid combination of type specifiers
  typedef double _Float32x;
                 ^

/usr/include/bits/floatn-common.h(285): error: invalid combination of type specifiers
  typedef long double _Float64x;
                      ^

5 errors detected in the compilation of "compare.cu".
make: *** [Makefile:46: compare.ptx] Error 1

Regards!

blob42 commented 9 months ago

same for me