cudatoolkit: fix nvprof
This commit is contained in:
parent
7fa3aba520
commit
9fc6345a91
@ -112,6 +112,10 @@ let
|
|||||||
# Set compiler for NVCC.
|
# Set compiler for NVCC.
|
||||||
wrapProgram $out/bin/nvcc \
|
wrapProgram $out/bin/nvcc \
|
||||||
--prefix PATH : ${gcc}/bin
|
--prefix PATH : ${gcc}/bin
|
||||||
|
|
||||||
|
# nvprof do not find any program to profile if LD_LIBRARY_PATH is not set
|
||||||
|
wrapProgram $out/bin/nvprof \
|
||||||
|
--prefix LD_LIBRARY_PATH : $out/lib
|
||||||
'' + lib.optionalString (lib.versionOlder version "8.0") ''
|
'' + lib.optionalString (lib.versionOlder version "8.0") ''
|
||||||
# Hack to fix building against recent Glibc/GCC.
|
# Hack to fix building against recent Glibc/GCC.
|
||||||
echo "NIX_CFLAGS_COMPILE+=' -D_FORCE_INLINES'" >> $out/nix-support/setup-hook
|
echo "NIX_CFLAGS_COMPILE+=' -D_FORCE_INLINES'" >> $out/nix-support/setup-hook
|
||||||
|
Loading…
x
Reference in New Issue
Block a user