-
Notifications
You must be signed in to change notification settings - Fork 717
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
90 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
easybuild/easyconfigs/p/PyTorch/PyTorch-1.13.1_increase-tolerance-test_ops.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
`test_out` may fail due to slightly different values caused by different order of matrizes in SGEMM: | ||
|
||
> Mismatched elements: 1 / 50 (2.0%) | ||
> Greatest absolute difference: 1.430511474609375e-05 at index (4, 5) (up to 1e-05 allowed) | ||
> Greatest relative difference: 4.65393206065873e-06 at index (4, 5) (up to 1.3e-06 allowed) | ||
|
||
Author: Alexander Grund (TU Dresden) | ||
Updated for PyTorch 1.13.1: Simon Branford (University of Birmingham) | ||
|
||
--- a/test/test_ops.py | ||
+++ b/test/test_ops.py | ||
@@ -545,6 +545,9 @@ | ||
else list(supported_dtypes)[0] | ||
) | ||
|
||
+ if dtype is torch.float32: | ||
+ self.precision, self.rel_tol = (1.5e-05, 1e-05) | ||
+ | ||
samples = op.sample_inputs(device, dtype) | ||
for sample in samples: | ||
# calls it normally to get the expected result |
35 changes: 35 additions & 0 deletions
35
easybuild/easyconfigs/p/PyTorch/PyTorch-1.13.1_install-vsx-vec-headers.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
Add missing headers to the installation which fixes e.g. test_cpp_extensions_aot_ninja | ||
See https://github.com/pytorch/pytorch/pull/85547 | ||
|
||
Author: Alexander Grund (TU Dresden) | ||
Updated for PyTorch 1.13.1: Simon Branford (University of Birmingham) | ||
|
||
--- a/aten/src/ATen/CMakeLists.txt | ||
+++ b/aten/src/ATen/CMakeLists.txt | ||
@@ -56,7 +56,7 @@ | ||
EXCLUDE(ATen_CORE_TEST_SRCS "${ATen_CORE_TEST_SRCS}" ${ATen_CORE_EXCLUDED_TEST_SRCS}) | ||
endif() | ||
|
||
-file(GLOB base_h "*.h" "detail/*.h" "cpu/*.h" "cpu/vec/vec512/*.h" "cpu/vec/vec256/*.h" "cpu/vec/*.h" "quantized/*.h" "functorch/*.h") | ||
+file(GLOB base_h "*.h" "detail/*.h" "cpu/*.h" "cpu/vec/vec512/*.h" "cpu/vec/vec256/*.h" "cpu/vec/vec256/vsx/*.h" "cpu/vec/*.h" "quantized/*.h" "functorch/*.h") | ||
file(GLOB base_cpp "*.cpp" "detail/*.cpp" "cpu/*.cpp" "functorch/*.cpp") | ||
file(GLOB cuda_h "cuda/*.h" "cuda/detail/*.h" "cuda/*.cuh" "cuda/detail/*.cuh") | ||
file(GLOB cuda_cpp "cuda/*.cpp" "cuda/detail/*.cpp") | ||
--- a/setup.py | ||
+++ b/setup.py | ||
@@ -1031,6 +1031,7 @@ | ||
'include/ATen/*.h', | ||
'include/ATen/cpu/*.h', | ||
'include/ATen/cpu/vec/vec256/*.h', | ||
+ 'include/ATen/cpu/vec/vec256/vsx/*.h', | ||
'include/ATen/cpu/vec/vec512/*.h', | ||
'include/ATen/cpu/vec/*.h', | ||
'include/ATen/core/*.h', | ||
@@ -1138,6 +1139,7 @@ | ||
'include/THH/*.cuh', | ||
'include/THH/*.h*', | ||
'include/THH/generic/*.h', | ||
+ 'include/sleef.h', | ||
'share/cmake/ATen/*.cmake', | ||
'share/cmake/Caffe2/*.cmake', | ||
'share/cmake/Caffe2/public/*.cmake', |
25 changes: 25 additions & 0 deletions
25
easybuild/easyconfigs/p/PyTorch/PyTorch-1.13.1_skip-failing-grad-test.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
Skip test_forward_mode_AD_nn_functional_max_unpool2d_cpu_float64 & test_forward_mode_AD_nn_functional_max_unpool3d_cpu_float64 | ||
which may unexpectably succeed. | ||
|
||
Author: Simon Branford (University of Birmingham) | ||
|
||
--- a/torch/testing/_internal/common_methods_invocations.py | ||
+++ b/torch/testing/_internal/common_methods_invocations.py | ||
@@ -11574,7 +11574,7 @@ | ||
# and if there are several indices pointing to the same memory, | ||
# gradcheck is oblivious about that and cannot perturb them all at once | ||
# (see sample_inputs_max_unpool_grad to find out more). | ||
- DecorateInfo(unittest.expectedFailure, 'TestGradients', 'test_forward_mode_AD'), | ||
+ DecorateInfo(unittest.skip("Skipped!"), 'TestGradients', 'test_forward_mode_AD'), | ||
DecorateInfo(unittest.skip("Skipped!"), 'TestGradients', 'test_fn_gradgrad'), | ||
DecorateInfo(unittest.skip("Skipped!"), 'TestGradients', 'test_fn_grad'), | ||
DecorateInfo(unittest.skip("Skipped!"), 'TestCompositeCompliance', 'test_forward_ad'), | ||
@@ -11611,7 +11611,7 @@ | ||
# and if there are several indices pointing to the same memory, | ||
# gradcheck is oblivious about that and cannot perturb them all at once | ||
# (see sample_inputs_max_unpool_grad to find out more). | ||
- DecorateInfo(unittest.expectedFailure, 'TestGradients', 'test_forward_mode_AD'), | ||
+ DecorateInfo(unittest.skip("Skipped!"), 'TestGradients', 'test_forward_mode_AD'), | ||
DecorateInfo(unittest.skip("Skipped!"), 'TestGradients', 'test_fn_gradgrad'), | ||
DecorateInfo(unittest.skip("Skipped!"), 'TestGradients', 'test_fn_grad'), | ||
DecorateInfo(unittest.expectedFailure, 'TestCompositeCompliance', 'test_forward_ad'), |