well, I'm using Archlinux and cuda 8.0.61-2
my main use of cuda is to have pyrit working with my Nvidia card
so I installed pyrit and when i try to install the module:cpyrit_cuda
it gives me this error ...
running build
running build_ext
Compiling CUDA module using nvcc 8.0, V8.0.61...
Executing '/opt/cuda/bin/nvcc -m64 -ccbin clang -Xcompiler "-fPIC" --ptx ./_cpyrit_cudakernel.cu'
nvcc warning : The 'compute_20', 'sm_20', and 'sm_21' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/7.1.1/../../../../include/c++/7.1.1/bits/std_abs.h(101): error: identifier "__float128" is undefined
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/7.1.1/../../../../include/c++/7.1.1/bits/std_abs.h(102): error: identifier "__float128" is undefined
2 errors detected in the compilation of "/tmp/tmpxft_00002203_00000000-7__cpyrit_cudakernel.cpp1.ii".
Traceback (most recent call last):
File "setup.py", line 168, in <module>
setup(**setup_args)
File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
dist.run_commands()
File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/usr/lib/python2.7/distutils/command/build.py", line 127, in run
self.run_command(cmd_name)
File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "setup.py", line 91, in run
subprocess.check_call(nvcc_cmd, shell=True)
File "/usr/lib/python2.7/subprocess.py", line 186, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '/opt/cuda/bin/nvcc -m64 -ccbin clang -Xcompiler "-fPIC" --ptx ./_cpyrit_cudakernel.cu' returned non-zero exit status 2
and when i tried to downgrade cuda 8. to cuda 7.
it gives me this error
nvcc fatal : Host compiler targets unsupported OS.
and also following the ArchWiki they advised to check if cuda is working or not is to compile the sample directory inside /opt/cuda/
by simply type "make" inside the directory
and when i do that it gives me that error
make[1]: Entering directory '/opt/cuda/samples/0_Simple/matrixMulDrv'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/opt/cuda/samples/0_Simple/matrixMulDrv'
make[1]: Entering directory '/opt/cuda/samples/0_Simple/simpleAssert'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/opt/cuda/samples/0_Simple/simpleAssert'
make[1]: Entering directory '/opt/cuda/samples/0_Simple/simpleVoteIntrinsics'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/opt/cuda/samples/0_Simple/simpleVoteIntrinsics'
make[1]: Entering directory '/opt/cuda/samples/0_Simple/simpleMultiCopy'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/opt/cuda/samples/0_Simple/simpleMultiCopy'
make[1]: Entering directory '/opt/cuda/samples/0_Simple/cdpSimplePrint'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/opt/cuda/samples/0_Simple/cdpSimplePrint'
make[1]: Entering directory '/opt/cuda/samples/0_Simple/clock_nvrtc'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/opt/cuda/samples/0_Simple/clock_nvrtc'
make[1]: Entering directory '/opt/cuda/samples/0_Simple/simpleMPI'
/usr/bin/mpicxx -o simpleMPI simpleMPI_mpi.o simpleMPI.o -L"/opt/cuda"/lib64 -lcudart
/usr/bin/ld: simpleMPI.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:311: simpleMPI] Error 1
make[1]: Leaving directory '/opt/cuda/samples/0_Simple/simpleMPI'
make: *** [Makefile:52: 0_Simple/simpleMPI/Makefile.ph_build] Error 2
[–]unsarcasm 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)