opensubdiv: fix compilation with CUDA support
This commit is contained in:
parent
a10c91d5ae
commit
641d6bf4e6
@ -30,7 +30,10 @@ stdenv.mkDerivation rec {
|
|||||||
"-DNO_EXAMPLES=1"
|
"-DNO_EXAMPLES=1"
|
||||||
"-DGLEW_INCLUDE_DIR=${glew.dev}/include"
|
"-DGLEW_INCLUDE_DIR=${glew.dev}/include"
|
||||||
"-DGLEW_LIBRARY=${glew.dev}/lib"
|
"-DGLEW_LIBRARY=${glew.dev}/lib"
|
||||||
] ++ lib.optional cudaSupport "-DOSD_CUDA_NVCC_FLAGS=--gpu-architecture=compute_30";
|
] ++ lib.optionals cudaSupport [
|
||||||
|
"-DOSD_CUDA_NVCC_FLAGS=--gpu-architecture=compute_30"
|
||||||
|
"-DCUDA_HOST_COMPILER=${cudatoolkit.cc}/bin/cc"
|
||||||
|
];
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user