Skip to content

Commit

Permalink
Try to make the nvcc.profile changes more future-proof
Browse files Browse the repository at this point in the history
  • Loading branch information
fwyzard committed Feb 16, 2018
1 parent 879a8da commit 2ae2d0d
Showing 1 changed file with 5 additions and 15 deletions.
20 changes: 5 additions & 15 deletions cuda.spec
Expand Up @@ -61,19 +61,9 @@ ln -sf libnvidia-ptxjitcompiler.so.%{driversversion} %{i}/dri

%post
# let nvcc find its components when invoked from the command line
cat > $RPM_INSTALL_PREFIX/%{pkgrel}/bin/nvcc.profile << @EOF
sed \
-e"/^TOP *=/s|= .*|= $CMS_INSTALL_PREFIX/%{pkgrel}|" \
-e's|/$(_TARGET_DIR_)||g' \
-e's|$(_TARGET_SIZE_)|64|g' \
-i $RPM_INSTALL_PREFIX/%{pkgrel}/bin/nvcc.profile

TOP = $CMS_INSTALL_PREFIX/%{pkgrel}
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

0 comments on commit 2ae2d0d

Please sign in to comment.