Skip to content

Commit f175368

Browse files
authored
Add more targets to pytorch build. (#6685)
1 parent e2b99a8 commit f175368

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ci/pytorch/build_pytorch.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,12 +104,12 @@ fi
104104

105105
# This cuts the number of built targets roughly in half:
106106
echo "::group::Extracting cuda targets from build.ninja..."
107-
# Query ninja for all object files built from CUDA source files in ATen/native/cuda/
107+
# Query ninja for all object files built from CUDA source files
108108
# that are part of the torch_cuda library:
109109
ninja -C ./build -t query lib/libtorch_cuda.so |
110-
grep -E "ATen/native/cuda/.*\\.cu\\.o$" |
110+
grep -E "torch_cuda\\.dir/.*\\.cu\\.o$" |
111111
sort | uniq | tee build/cuda_targets.txt
112-
# At the time this script was written, there were 217 cuda targets.
112+
# At the time this script was written, there were 311 cuda targets.
113113
# Check that there are at least 100 detected targets, otherwise fail.
114114
num_targets=$(wc -l < build/cuda_targets.txt)
115115
if test "$num_targets" -lt 100; then
@@ -119,7 +119,7 @@ if test "$num_targets" -lt 100; then
119119
fi
120120
echo "::endgroup::"
121121

122-
echo "::group::Building pytorch CUDA targets with custom CCCL..."
122+
echo "::group::Building $num_targets pytorch CUDA targets with custom CCCL..."
123123
ninja -C ./build $(xargs -a build/cuda_targets.txt)
124124
echo "::endgroup::"
125125

0 commit comments

Comments
 (0)