Skip to content

Commit

Permalink
whitespacing (to be squashed)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcaesar committed Apr 22, 2024
1 parent c5205a0 commit a9fefb2
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions pkgs/by-name/op/opensplat/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -54,30 +54,33 @@ stdenv'.mkDerivation {
ln -s ${cxxopts}/include/cxxopts.hpp vendor/cxxopts.hpp
'';

nativeBuildInputs = [
cmake
ninja
]
nativeBuildInputs =
[
cmake
ninja
]
++ lib.optionals cudaSupport [
cudaPackages.cuda_nvcc
autoAddDriverRunpath
];

buildInputs = [
nlohmann_json
torch.cxxdev
torch
opencv
]
buildInputs =
[
nlohmann_json
torch.cxxdev
torch
opencv
]
++ lib.optionals cudaSupport [
cudaPackages.cuda_cudart
];

env.TORCH_CUDA_ARCH_LIST = "${lib.concatStringsSep ";" python3.pkgs.torch.cudaCapabilities}";

cmakeFlags = [
(lib.cmakeBool "CMAKE_SKIP_RPATH" true)
]
cmakeFlags =
[
(lib.cmakeBool "CMAKE_SKIP_RPATH" true)
]
++ lib.optionals cudaSupport [
(lib.cmakeFeature "GPU_RUNTIME" "CUDA")
(lib.cmakeFeature "CUDA_TOOLKIT_ROOT_DIR" "${cudaPackages.cudatoolkit}/")
Expand Down

0 comments on commit a9fefb2

Please sign in to comment.