tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
0
fork
atom
overview
issues
pulls
pipelines
opensubdiv: fix compilation with CUDA support
Nikolay Amiantov
8 years ago
641d6bf4
a10c91d5
+4
-1
1 changed file
expand all
collapse all
unified
split
pkgs
development
libraries
opensubdiv
default.nix
+4
-1
pkgs/development/libraries/opensubdiv/default.nix
···
30
30
"-DNO_EXAMPLES=1"
31
31
"-DGLEW_INCLUDE_DIR=${glew.dev}/include"
32
32
"-DGLEW_LIBRARY=${glew.dev}/lib"
33
33
-
] ++ lib.optional cudaSupport "-DOSD_CUDA_NVCC_FLAGS=--gpu-architecture=compute_30";
33
33
+
] ++ lib.optionals cudaSupport [
34
34
+
"-DOSD_CUDA_NVCC_FLAGS=--gpu-architecture=compute_30"
35
35
+
"-DCUDA_HOST_COMPILER=${cudatoolkit.cc}/bin/cc"
36
36
+
];
34
37
35
38
enableParallelBuilding = true;
36
39