Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 10 additions & 11 deletions nix-builder/lib/extension/torch/arch.nix
Original file line number Diff line number Diff line change
Expand Up @@ -244,17 +244,16 @@ stdenv.mkDerivation (prevAttrs: {
]
++ extraDeps;

env =
{
inherit variant;
}
// lib.optionalAttrs cudaSupport {
CUDAToolkit_ROOT = "${lib.getDev cudaPackages.cuda_nvcc}";
}
// lib.optionalAttrs xpuSupport {
MKLROOT = oneapi-torch-dev;
SYCL_ROOT = oneapi-torch-dev;
};
env = {
inherit variant;
}
// lib.optionalAttrs cudaSupport {
CUDAToolkit_ROOT = "${lib.getDev cudaPackages.cuda_nvcc}";
}
// lib.optionalAttrs xpuSupport {
MKLROOT = oneapi-torch-dev;
SYCL_ROOT = oneapi-torch-dev;
};

# If we use the default setup, CMAKE_CUDA_HOST_COMPILER gets set to nixpkgs g++.
dontSetupCUDAToolkitCompilers = true;
Expand Down
21 changes: 10 additions & 11 deletions nix-builder/lib/extension/tvm-ffi/arch.nix
Original file line number Diff line number Diff line change
Expand Up @@ -236,17 +236,16 @@ stdenv.mkDerivation (prevAttrs: {
]
++ extraDeps;

env =
{
inherit variant;
}
// lib.optionalAttrs cudaSupport {
CUDAToolkit_ROOT = "${lib.getDev cudaPackages.cuda_nvcc}";
}
// lib.optionalAttrs xpuSupport {
MKLROOT = oneapi-torch-dev;
SYCL_ROOT = oneapi-torch-dev;
};
env = {
inherit variant;
}
// lib.optionalAttrs cudaSupport {
CUDAToolkit_ROOT = "${lib.getDev cudaPackages.cuda_nvcc}";
}
// lib.optionalAttrs xpuSupport {
MKLROOT = oneapi-torch-dev;
SYCL_ROOT = oneapi-torch-dev;
};

# If we use the default setup, CMAKE_CUDA_HOST_COMPILER gets set to nixpkgs g++.
dontSetupCUDAToolkitCompilers = true;
Expand Down
Loading