WifSolverCuda
WifSolverCuda copied to clipboard
troubles while compiling for cuda less than 11.6
Build
Windows:
Program was prepared using CUDA 11.6 - for any other version manual change in VS project config files is needed.
Exe under /Releases/ was build using compute_cap=86, for cards 30xx. If you have older card, you must rebuild
program using older CUDA/lower CCAP.
Linux:
Go to WifSolverCuda/ subfolder and execute make all. If your device does not support compute capability=86 (error
"No kernel image is available for execution on the device"), do the change in Makefile (for example 1080Ti requires
COMPUTE_CAP=61).
i was try to fix <Import Project="$(VCTargetsPath)\BuildCustomizations\CUDA 11.6.targets" />
in WifSolverCuda.vcxproj
but compiling failed yet after it
explain please where and how i may fix source code to compile for cuda less than 11.6 ? thx a lot )
Hello, Which version do you want to use? For which card? If compilation fails, please include the error output. Usually it is enough to replace both "11.6" in project file with your version, but maybe you must also change computation capabilities, by default it is high, 86. Or you may always try to launch precompiled version from /releases/ on github, there is one file for cards 30xx and other compiled used cuda 10.2 and comp.cap. 5.4
Usually it is enough to replace both "11.6" in project file with your version, but maybe you must also change computation capabilities, by default it is high, 86. Or you may always try to launch precompiled version from /releases/ on github, there is one file for cards 30xx and other compiled used cuda 10.2 and comp.cap. 5.4
i has found only one "11.6" param... will try to check it one more time ive try to recompile for linux(compcap 37 and cuda 10), but precompiled that present at ur git is only for windows
There is already a Makefile for linux, you may launch it "make all". Only change param COMPUTE_CAP=86, it will use the existing cuda. Maybe you will need to change path CUDA_HOME=/usr/local/cuda, but normally it works.
make all failed wtih any c_c, send u screens with errors
I see that you are using vast.ai, right?
- Do you use correct image? I recommend using "devel-ubuntu". Recently I used [nvidia/cuda:11.3.1-devel-ubuntu18.04] and did not have any problems.
- Maybe you should use older cuda, like 10.2? Try "10.2-devel-ubuntu18.04"
WifSolverCuda.vcxproj 33 <Import Project="$(VCTargetsPath)\BuildCustomizations\CUDA 11.6.props" /> to <Import Project="$(VCTargetsPath)\BuildCustomizations\CUDA 10.0.props" /> 77 <CodeGeneration>compute_86,sm_86</CodeGeneration> to <CodeGeneration>compute_61,sm_61</CodeGeneration> 112 <Import Project="$(VCTargetsPath)\BuildCustomizations\CUDA 11.6.targets" /> to <Import Project="$(VCTargetsPath)\BuildCustomizations\CUDA 10.0.targets" />