File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 104104
105105# This cuts the number of built targets roughly in half:
106106echo " ::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:
109109ninja -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.
114114num_targets=$( wc -l < build/cuda_targets.txt)
115115if test " $num_targets " -lt 100; then
@@ -119,7 +119,7 @@ if test "$num_targets" -lt 100; then
119119fi
120120echo " ::endgroup::"
121121
122- echo " ::group::Building pytorch CUDA targets with custom CCCL..."
122+ echo " ::group::Building $num_targets pytorch CUDA targets with custom CCCL..."
123123ninja -C ./build $( xargs -a build/cuda_targets.txt)
124124echo " ::endgroup::"
125125
You can’t perform that action at this time.
0 commit comments