-
Notifications
You must be signed in to change notification settings - Fork 26.3k
Port ATen and JIT C++ tests to Catch2 #5788
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@pytorchbot retest this please |
|
It looks like the CI hook-up for libtorch is still not working. I strongly advise downloading the Docker image and testing off of that. |
|
Yes, I’m doing that now. Sorry for the trial and error |
|
I don't mind :) The advice is mostly for your sanity ;) |
|
Ok, it looks like fails are genuine fails now ( |
|
I get a failure in a python multiprocessing test in On the other hand, I need a suggestion for the failure in It looks like when |
|
Yes, I know exactly what the ASAN problem is. Look at the bottom of To ensure that the build smoketests properly load the ASAN runtime, we are fucking around with I think the right thing to do is to make sure libtorch gets built with clang, and with ASAN. That means figuring out how to apply the flags in the invocation above to the cmake invocation, and also doing the build BEFORE we run the |
|
Re the other test, it does seem like has been flaky. |
|
@pytorchbot retest this please |
|
Thank you @ezyang! What I don't get is why the error is showing up on a build that does not involve |
2d5a66f to
d985c9a
Compare
|
Thanks for the hint @ezyang, I think I finally figured it out. The crash was coming from gcc during the Since the I now This way the build succeeds and tests pass. |
|
Current failures are unrelated, I tried re-testing but it didn't help. I'll try later. |
|
It's not been a good weekend for CI. @pytorchbot retest this please |
|
@pytorchbot retest this please |
|
Thanks @ezyang. Just a note: ATen should also get Catch2 as a submodule. |
…simple") moving average" (#5892) * Revert "Port ATen and JIT C++ tests to Catch2 (#5788)" This reverts commit 6f80023. * Revert "Fix error message for cat-ing zero-dim tensors (#5819)" This reverts commit cf2e176. * Revert "Softmax symbolic should account for negative dim (#5846)" This reverts commit ba64724. * Revert "[fft][1 of 3] build system and helpers to support cuFFT and MKL (#5855)" This reverts commit 22ef8e5. * Revert "Don't modify requires_grad when running DataParallel in no_grad mode (#5880)" This reverts commit d11b7fb. * Revert "fix some methods not showing up in doc (#5882)" This reverts commit 24fca0e. * Revert "ReduceOps cleanup and set_num_threads (#5723)" This reverts commit 84400d5. * Revert "introduce shape_as_tensor and reshape_from_variable_shape (#5824)" This reverts commit f446b82. * Revert "Enable resetting of batchnorm running moments and cumulative ("simple") moving average (#5766)" This reverts commit 99b1f6c.
This PR addresses pytorch#5648. In particular, following the discussion at pytorch#5648: - it adds Catch as a submodule (https://github.com/catchorg/Catch2) in torch/aten/utils - it ports all ATen tests to Catch - it ports torch/csrc/jit/test_jit.cpp to Catch (libtorch only, Python build is unaffected)
…simple") moving average" (pytorch#5892) * Revert "Port ATen and JIT C++ tests to Catch2 (pytorch#5788)" This reverts commit 6f80023. * Revert "Fix error message for cat-ing zero-dim tensors (pytorch#5819)" This reverts commit cf2e176. * Revert "Softmax symbolic should account for negative dim (pytorch#5846)" This reverts commit ba64724. * Revert "[fft][1 of 3] build system and helpers to support cuFFT and MKL (pytorch#5855)" This reverts commit 22ef8e5. * Revert "Don't modify requires_grad when running DataParallel in no_grad mode (pytorch#5880)" This reverts commit d11b7fb. * Revert "fix some methods not showing up in doc (pytorch#5882)" This reverts commit 24fca0e. * Revert "ReduceOps cleanup and set_num_threads (pytorch#5723)" This reverts commit 84400d5. * Revert "introduce shape_as_tensor and reshape_from_variable_shape (pytorch#5824)" This reverts commit f446b82. * Revert "Enable resetting of batchnorm running moments and cumulative ("simple") moving average (pytorch#5766)" This reverts commit 99b1f6c.
This reverts commit 6f80023.
Note: this is a re-submission of #5698, which had an issue with CI.
This PR addresses #5648. In particular, following the discussion at #5648:
torch/aten/utilstorch/csrc/jit/test_jit.cppto Catch (libtorch only, Python build is unaffected)