Skip to content

Commit f449a6e

Browse files
authored
python3Packages.torch: Remove built-in composable_kernel headers search path (#406716)
2 parents 8efb520 + e1cea25 commit f449a6e

File tree

1 file changed

+5
-0
lines changed
  • pkgs/development/python-modules/torch/source

1 file changed

+5
-0
lines changed

pkgs/development/python-modules/torch/source/default.nix

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,11 @@ buildPythonPackage rec {
351351
substituteInPlace cmake/public/LoadHIP.cmake \
352352
--replace "set(ROCM_PATH \$ENV{ROCM_PATH})" \
353353
"set(ROCM_PATH \$ENV{ROCM_PATH})''\nset(ROCM_VERSION ${lib.concatStrings (lib.intersperse "0" (lib.splitVersion rocmPackages.clr.version))})"
354+
355+
# Use composable kernel as dependency, rather than built-in third-party
356+
substituteInPlace aten/src/ATen/CMakeLists.txt \
357+
--replace-fail "list(APPEND ATen_HIP_INCLUDE \''${CMAKE_CURRENT_SOURCE_DIR}/../../../third_party/composable_kernel/include)" "" \
358+
--replace-fail "list(APPEND ATen_HIP_INCLUDE \''${CMAKE_CURRENT_SOURCE_DIR}/../../../third_party/composable_kernel/library/include)" ""
354359
''
355360
# Detection of NCCL version doesn't work particularly well when using the static binary.
356361
+ lib.optionalString cudaSupport ''

0 commit comments

Comments
 (0)