Merge pull request #3069 from danielzinn/add_cuda_6
Allowing cuda to use its own thrust library
This commit is contained in:
commit
e4f9e321ca
@ -51,8 +51,11 @@ stdenv.mkDerivation rec {
|
||||
perl ./install-linux.pl --prefix="$out"
|
||||
rm $out/tools/CUDA_Occupancy_Calculator.xls
|
||||
perl ./install-sdk-linux.pl --prefix="$sdk" --cudaprefix="$out"
|
||||
mv $out/include $out/usr_include
|
||||
'';
|
||||
|
||||
setupHook = ./setup-hook.sh;
|
||||
|
||||
meta = {
|
||||
license = [ "nonfree" ];
|
||||
};
|
||||
|
@ -51,8 +51,11 @@ stdenv.mkDerivation rec {
|
||||
perl ./install-linux.pl --prefix="$out"
|
||||
rm $out/tools/CUDA_Occupancy_Calculator.xls
|
||||
perl ./install-sdk-linux.pl --prefix="$sdk" --cudaprefix="$out"
|
||||
mv $out/include $out/usr_include
|
||||
'';
|
||||
|
||||
setupHook = ./setup-hook.sh;
|
||||
|
||||
meta = {
|
||||
license = [ "nonfree" ];
|
||||
};
|
||||
|
8
pkgs/development/compilers/cudatoolkit/setup-hook.sh
Normal file
8
pkgs/development/compilers/cudatoolkit/setup-hook.sh
Normal file
@ -0,0 +1,8 @@
|
||||
addIncludePath () {
|
||||
if test -d "$1/usr_include"
|
||||
then
|
||||
export NIX_CFLAGS_COMPILE="${NIX_CFLAGS_COMPILE} -I$1/usr_include"
|
||||
fi
|
||||
}
|
||||
|
||||
envHooks=(${envHooks[@]} addIncludePath)
|
Loading…
Reference in New Issue
Block a user