New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmsenv breaks local CUDA toolchain #12
Comments
Because SCRAM. |
The When we link the externals in the CMSSW release area, When compiling a .cu file with "scram build" this is not an issue, because scram calls However, running My preferred solution would be to write the CUDA installation path in the I've asked on the "Software Development Tools" hypernews, hopefully some expert can help me figure out how to do that. |
For the moment, a workaround is to run cmsenv
eval $(scram tool info cuda | grep ^CUDA_BASE)
sed -e's/^<tool name="cuda" version="9.1.85.*">/<tool name="cuda" version="9.1.85-workaround">/' -i $CMSSW_BASE/config/toolbox/$SCRAM_ARCH/tools/selected/cuda.xml
scram setup $CMSSW_BASE/config/toolbox/$SCRAM_ARCH/tools/selected/cuda.xml
rm -f $CMSSW_BASE/external/$SCRAM_ARCH/bin/nvcc.profile
cat > $CMSSW_BASE/external/$SCRAM_ARCH/bin/nvcc.profile << @EOF
TOP = $CUDA_BASE
NVVMIR_LIBRARY_DIR = \$(TOP)/nvvm/libdevice
LD_LIBRARY_PATH += \$(TOP)/lib:
PATH += \$(TOP)/nvvm/bin:\$(TOP)/bin:
INCLUDES += "-I\$(TOP)/include" \$(_SPACE_)
LIBRARIES =+ \$(_SPACE_) "-L\$(TOP)/lib\$(_TARGET_SIZE_)/stubs" "-L\$(TOP)/lib\$(_TARGET_SIZE_)"
CUDAFE_FLAGS +=
PTXAS_FLAGS +=
@EOF |
Should be fixed by cms-sw/cmsdist#3740 (10.1.x) and cms-sw/cmsdist#3741 (10.0.x). |
This is now included in CMSSW 10.1.X and 10.1.0-pre2. |
A new Issue was created by @felicepantaleo Felice Pantaleo. can you please review it and eventually sign/assign? Thanks. cms-bot commands are listed here |
reproduce:
$ nvcc aCUDAprogram.cu
it works
$ cd CMSSW_10_0_1/src/
CMSSW_10_0_1/src$ cmsenv
$ cd -
$ nvcc aCUDAprogram.cu
sh: cicc: command not found
The text was updated successfully, but these errors were encountered: