Skip to content

Commit

Permalink
Remove includes not available on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
HGuillemet committed Jun 9, 2024
1 parent e329cc5 commit aef540e
Show file tree
Hide file tree
Showing 32 changed files with 26 additions and 1,855 deletions.
12 changes: 9 additions & 3 deletions pytorch/include_list.pl
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,13 @@ sub go {
my ($roots, $opts) = @_;
my $path = join ' ', @$roots, @$opts;

my @inc = `g++ -I. -I torch/csrc/api/include/ -DUSE_UCC -DUSE_C10D_NCCL -DUSE_C10D_GLOO -DUSE_C10D_MPI -DUSE_DISTRIBUTED -H $path -E 2>&1 > /dev/null`;
my $exe = "g++ -I. -I torch/csrc/api/include/ -DUSE_UCC -DUSE_C10D_GLOO -DUSE_C10D_MPI -DUSE_DISTRIBUTED -D_WIN32 -H $path -E 2>&1 > /dev/null";
my @inc = `$exe`;
if ($? != 0) {
print STDERR "Failed:\n$exe\nError: $?: $!\n";
exit $?;
}

foreach my $i (@inc) {
chomp $i;
my ($depth, $f) = $i =~ /^(\.+)\s(.*\.h(?:pp)?)$/;
Expand Down Expand Up @@ -67,7 +73,7 @@ sub go {
// torch/csrc/distributed/c10d/logger.hpp
EOF

go(['torch/csrc/api/include/torch/torch.h', 'torch/script.h', 'torch/csrc/inductor/aoti_runner/model_container_runner_cpu.h', 'torch/csrc/distributed/c10d/ProcessGroupGloo.hpp', 'torch/csrc/distributed/c10d/PrefixStore.hpp', 'torch/csrc/distributed/c10d/logger.hpp'], ['-DUSE_C10D_GLOO', '-DUSE_DISTRIBUTED']);
go(['torch/csrc/api/include/torch/torch.h', 'torch/script.h', 'torch/csrc/inductor/aoti_runner/model_container_runner_cpu.h', 'torch/csrc/distributed/c10d/ProcessGroupGloo.hpp', 'torch/csrc/distributed/c10d/PrefixStore.hpp', 'torch/csrc/distributed/c10d/logger.hpp'], []);

print <<EOF;
Expand All @@ -77,4 +83,4 @@ sub go {
// torch/csrc/distributed/c10d/ProcessGroupNCCL.hpp
EOF

go(['ATen/cudnn/Descriptors.h', 'torch/csrc/inductor/aoti_runner/model_container_runner_cuda.h', 'torch/csrc/distributed/c10d/ProcessGroupNCCL.hpp'], ['-I/opt/cuda/targets/x86_64-linux/include/', '-DUSE_CUDA', '-DUSE_C10D_NCCL', '-DUSE_DISTRIBUTED', '-DUSE_C10D_GLOO']);
go(['ATen/cudnn/Descriptors.h', 'torch/csrc/inductor/aoti_runner/model_container_runner_cuda.h', 'torch/csrc/distributed/c10d/ProcessGroupNCCL.hpp'], ['-I/opt/cuda/targets/x86_64-linux/include/', '-DUSE_CUDA', '-DUSE_C10D_NCCL']);
47 changes: 0 additions & 47 deletions pytorch/src/gen/java/org/bytedeco/pytorch/AutogradError.java

This file was deleted.

40 changes: 0 additions & 40 deletions pytorch/src/gen/java/org/bytedeco/pytorch/AutogradMetadata.java

This file was deleted.

39 changes: 0 additions & 39 deletions pytorch/src/gen/java/org/bytedeco/pytorch/DelayedError.java

This file was deleted.

86 changes: 0 additions & 86 deletions pytorch/src/gen/java/org/bytedeco/pytorch/DistAutogradContext.java

This file was deleted.

87 changes: 0 additions & 87 deletions pytorch/src/gen/java/org/bytedeco/pytorch/Engine.java

This file was deleted.

32 changes: 0 additions & 32 deletions pytorch/src/gen/java/org/bytedeco/pytorch/EngineStub.java

This file was deleted.

Loading

0 comments on commit aef540e

Please sign in to comment.