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
valgrind chokes on rdrand from gcc libstdc++ #6705
Comments
When and what do we build with |
Maybe it's not actually |
That's possible. We should just make it possible to control the implementation selector via env vars, so you can disable those paths for debugging and testing. |
I ran into this exact same issue when I was running https://github.com/pytorch/pytorch/blob/master/aten/tools/run_tests.sh#L24 with CUDA enabled, although there is no error if the CUDA path is avoided and |
You can disable the AVX and AVX2 kernels by setting both environment variables But that's NOT the issue you're seeing. The issue is that GCC's libstdc++ uses RDRAND for http://www.pcg-random.org/posts/cpps-random_device.html On Linux, we could switch to reading from |
Upstream reports this bug is fixed https://bugs.kde.org/show_bug.cgi?id=353370 so I'm gonna assume that you can get a recent enough version valgrind to work aroudn this problem |
I've attempted to use valgrind on PyTorch in the past and ran into https://bugs.kde.org/show_bug.cgi?id=387940
Apparently, the culprit was
-march=native
. If you're going to valgrind your PyTorch, you shouldn't build with this flag.This issue is to track:
-march=native
in case you are doing a valgrind runcc @VitalyFedyunin
The text was updated successfully, but these errors were encountered: