File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
pkgs/development/python-modules/torch/source Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff 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})''\n set(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 ''
You can’t perform that action at this time.
0 commit comments