Merge pull request #9769 from bjornfor/cudatoolkit-include-fixup
cudatoolkit: don't move $out/include to $out/usr_include
This commit is contained in:
commit
af3ec14b24
|
@ -59,7 +59,6 @@ in stdenv.mkDerivation rec {
|
||||||
perl ./install-linux.pl --prefix="$out"
|
perl ./install-linux.pl --prefix="$out"
|
||||||
rm $out/tools/CUDA_Occupancy_Calculator.xls
|
rm $out/tools/CUDA_Occupancy_Calculator.xls
|
||||||
perl ./install-sdk-linux.pl --prefix="$sdk" --cudaprefix="$out"
|
perl ./install-sdk-linux.pl --prefix="$sdk" --cudaprefix="$out"
|
||||||
mv $out/include $out/usr_include
|
|
||||||
|
|
||||||
# let's remove the 32-bit libraries, they confuse the lib64->lib mover
|
# let's remove the 32-bit libraries, they confuse the lib64->lib mover
|
||||||
rm -rf $out/lib
|
rm -rf $out/lib
|
||||||
|
@ -70,8 +69,6 @@ in stdenv.mkDerivation rec {
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
|
|
||||||
setupHook = ./setup-hook.sh;
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
license = lib.licenses.unfree;
|
license = lib.licenses.unfree;
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,8 +0,0 @@
|
||||||
addIncludePath () {
|
|
||||||
if test -d "$1/usr_include"
|
|
||||||
then
|
|
||||||
export NIX_CFLAGS_COMPILE="${NIX_CFLAGS_COMPILE} -I$1/usr_include"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
envHooks=(${envHooks[@]} addIncludePath)
|
|
|
@ -53,7 +53,7 @@ self: super: {
|
||||||
configureFlags = (drv.configureFlags or []) ++
|
configureFlags = (drv.configureFlags or []) ++
|
||||||
pkgs.lib.optional pkgs.stdenv.is64bit "--extra-lib-dirs=${pkgs.cudatoolkit}/lib64" ++ [
|
pkgs.lib.optional pkgs.stdenv.is64bit "--extra-lib-dirs=${pkgs.cudatoolkit}/lib64" ++ [
|
||||||
"--extra-lib-dirs=${pkgs.cudatoolkit}/lib"
|
"--extra-lib-dirs=${pkgs.cudatoolkit}/lib"
|
||||||
"--extra-include-dirs=${pkgs.cudatoolkit}/usr_include"
|
"--extra-include-dirs=${pkgs.cudatoolkit}/include"
|
||||||
];
|
];
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
unset CC # unconfuse the haskell-cuda configure script
|
unset CC # unconfuse the haskell-cuda configure script
|
||||||
|
|
|
@ -1566,7 +1566,6 @@ let
|
||||||
});
|
});
|
||||||
|
|
||||||
iFes = old.iFes.overrideDerivation (attrs: {
|
iFes = old.iFes.overrideDerivation (attrs: {
|
||||||
patches = [ ./patches/iFes.patch ];
|
|
||||||
CUDA_HOME = "${pkgs.cudatoolkit}";
|
CUDA_HOME = "${pkgs.cudatoolkit}";
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -1661,7 +1660,7 @@ let
|
||||||
patches = [ ./patches/gmatrix.patch ];
|
patches = [ ./patches/gmatrix.patch ];
|
||||||
CUDA_LIB_PATH = "${pkgs.cudatoolkit}/lib64";
|
CUDA_LIB_PATH = "${pkgs.cudatoolkit}/lib64";
|
||||||
R_INC_PATH = "${pkgs.R}/lib/R/include";
|
R_INC_PATH = "${pkgs.R}/lib/R/include";
|
||||||
CUDA_INC_PATH = "${pkgs.cudatoolkit}/usr_include";
|
CUDA_INC_PATH = "${pkgs.cudatoolkit}/include";
|
||||||
});
|
});
|
||||||
|
|
||||||
# It seems that we cannot override meta attributes with overrideDerivation.
|
# It seems that we cannot override meta attributes with overrideDerivation.
|
||||||
|
|
|
@ -1,15 +1,3 @@
|
||||||
diff -ru -x '*~' CARramps_orig/configure CARramps/configure
|
|
||||||
--- CARramps_orig/configure 2011-12-01 22:27:06.000000000 +0900
|
|
||||||
+++ CARramps/configure 2014-10-25 14:56:04.599337748 +0900
|
|
||||||
@@ -2395,7 +2395,7 @@
|
|
||||||
|
|
||||||
|
|
||||||
NCFLAGS="-arch=sm_13 -O2"
|
|
||||||
-CUDA_INC=${CUDA_HOME}/include
|
|
||||||
+CUDA_INC=${CUDA_HOME}/usr_include
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA headers" >&5
|
|
||||||
$as_echo_n "checking for CUDA headers... " >&6; }
|
|
||||||
as_ac_File=`$as_echo "ac_cv_file_${CUDA_INC}/cublas.h" | $as_tr_sh`
|
|
||||||
diff -ru -x '*~' CARramps_orig/src/combo1colForR1Q_d.cu CARramps/src/combo1colForR1Q_d.cu
|
diff -ru -x '*~' CARramps_orig/src/combo1colForR1Q_d.cu CARramps/src/combo1colForR1Q_d.cu
|
||||||
--- CARramps_orig/src/combo1colForR1Q_d.cu 2011-12-01 22:27:06.000000000 +0900
|
--- CARramps_orig/src/combo1colForR1Q_d.cu 2011-12-01 22:27:06.000000000 +0900
|
||||||
+++ CARramps/src/combo1colForR1Q_d.cu 2014-10-25 14:59:06.869299163 +0900
|
+++ CARramps/src/combo1colForR1Q_d.cu 2014-10-25 14:59:06.869299163 +0900
|
||||||
|
|
|
@ -6,7 +6,7 @@ diff -ru -x '*~' WideLM_orig/src/Makefile.in WideLM/src/Makefile.in
|
||||||
R_INCS := @R_INCL@ @RCPP_INCL@
|
R_INCS := @R_INCL@ @RCPP_INCL@
|
||||||
CC_ARGS := @CU_PARAMS@ -Xcompiler @R_CPIC@
|
CC_ARGS := @CU_PARAMS@ -Xcompiler @R_CPIC@
|
||||||
-CU_INCS := -I@CUDA_HOME@/include
|
-CU_INCS := -I@CUDA_HOME@/include
|
||||||
+CU_INCS := -I@CUDA_HOME@/usr_include
|
+CU_INCS := -I@CUDA_HOME@/include
|
||||||
CU_ARCH := -gencode arch=compute_20,code=sm_20
|
CU_ARCH := -gencode arch=compute_20,code=sm_20
|
||||||
|
|
||||||
#linker options
|
#linker options
|
||||||
|
|
|
@ -5,7 +5,7 @@ diff -ru -x '*~' gputools_orig/src/Makefile gputools/src/Makefile
|
||||||
|
|
||||||
R_HOME := $(shell R RHOME)
|
R_HOME := $(shell R RHOME)
|
||||||
|
|
||||||
+CUDA_INC := $(CUDA_HOME)/usr_include
|
+CUDA_INC := $(CUDA_HOME)/include
|
||||||
+CUDA_LIB := $(CUDA_HOME)/lib
|
+CUDA_LIB := $(CUDA_HOME)/lib
|
||||||
+
|
+
|
||||||
#compiler/preprocessor options
|
#compiler/preprocessor options
|
||||||
|
|
|
@ -1,13 +0,0 @@
|
||||||
diff -u3 -r iFes_orig/src/config.mk iFes/src/config.mk
|
|
||||||
--- iFes_orig/src/config.mk 2014-12-09 14:19:58.000000000 +0300
|
|
||||||
+++ iFes/src/config.mk 2015-02-19 22:47:24.426804174 +0300
|
|
||||||
@@ -12,7 +12,7 @@
|
|
||||||
endif
|
|
||||||
|
|
||||||
# set CUDA_INC to CUDA header dir on your system
|
|
||||||
-CUDA_INC := $(CUDA_HOME)/include
|
|
||||||
+CUDA_INC := $(CUDA_HOME)/usr_include
|
|
||||||
|
|
||||||
ARCH := $(shell uname -m)
|
|
||||||
|
|
||||||
|
|
|
@ -1,12 +0,0 @@
|
||||||
diff -ru -x '*~' magma_orig/configure magma/configure
|
|
||||||
--- magma_orig/configure 2013-04-03 11:07:42.000000000 +0900
|
|
||||||
+++ magma/configure 2014-10-18 21:58:48.745890187 +0900
|
|
||||||
@@ -2377,7 +2377,7 @@
|
|
||||||
|
|
||||||
|
|
||||||
NCFLAGS="-arch=sm_13 -O2 -DADD_"
|
|
||||||
-CUDA_INC=${CUDA_HOME}/include
|
|
||||||
+CUDA_INC=${CUDA_HOME}/usr_include
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA headers" >&5
|
|
||||||
$as_echo_n "checking for CUDA headers... " >&6; }
|
|
||||||
as_ac_File=`$as_echo "ac_cv_file_${CUDA_INC}/cublas.h" | $as_tr_sh`
|
|
|
@ -18,7 +18,7 @@ diff -ru -x '*~' rpud_orig/src/Makefile.in rpud/src/Makefile.in
|
||||||
|
|
||||||
#compiler/preprocessor options
|
#compiler/preprocessor options
|
||||||
-INCS := -I@CUDA_HOME@/include
|
-INCS := -I@CUDA_HOME@/include
|
||||||
+INCS := -I@CUDA_HOME@/usr_include
|
+INCS := -I@CUDA_HOME@/include
|
||||||
PARAMS := -Xcompiler "@R_INCLUDE@ @CPICFLAGS@"
|
PARAMS := -Xcompiler "@R_INCLUDE@ @CPICFLAGS@"
|
||||||
|
|
||||||
#linker options
|
#linker options
|
||||||
|
|
Loading…
Reference in New Issue