Context: I am trying to extend JAX Python with some custom CUDA kernels and when I do the long compilation command I get ~ 100 errors from various packages (the first one is the title of the question). I will give you one error line per package affected but there are many for each:
/usr/include/c++/11/cstdint(52): error: the global scope has no "int_fast8_t"
/usr/include/c++/11/exception(53): error: not a class or struct name
/usr/include/c++/11/typeinfo(190): error: not a class or struct name
/usr/include/c++/11/bits/nested_exception.h(99): error: identifier "true_type" is undefined
/usr/include/c++/11/bits/stringfwd.h(79): error: basic_string is not a template
/usr/include/c++/11/cwchar(64): error: the global scope has no "mbstate_t"
For reference here is the long command I am trying to run which is taken from the JAX documentation:
nvcc --threads 4 -Xcompiler -Wall -ldl --expt-relaxed-constexpr -O3 -DNDEBUG -Xcompiler -O3 --generate-code=arch=compute_70,code=[compute_70,sm_70] --generate-code=arch=compute_75,code=[compute_75,sm_75] --generate-code=arch=compute_80,code=[compute_80,sm_80] --generate-code=arch=compute_86,code=[compute_86,sm_86] -Xcompiler=-fPIC -Xcompiler=-fvisibility=hidden -x cu -c lib/kernel.cu -o build/dia_kernel.cu.o
Any ideas on this?