-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Segmentation fault when copying PyTorch tensor to cuda just by importing Ray #2413
Comments
By changing the order of |
Interesting, thanks for reporting this! It looks very related to #2159. Out of curiosity, do you have tensorflow installed or not? If you do |
@floringogianu can you clarify what you mean by Could you perhaps try registering a custom serializer/deserializer as in #1856 (comment) (though this may need to be updated for more recent versions of pytorch)? Actually, I think we already do something like this in https://github.com/apache/arrow/blob/4ba8769b4858dcd46a7ea7e40bd6c10102327a0d/python/pyarrow/serialization.py#L131-L153, but maybe we aren't registering serializers for the cuda equivalents. |
@robertnishihara thanks for the quick reply, much appreciated. I took me a while to replay back because Back to the issue: I created a separate conda virtualenv and installed tensorflow, the problem didn't reproduce. I then installed pytorch in this new env and again the segfault didn't reproduce. I returned to the virtualenv I used yesterday and again, no segfaults. I have no explanation for what is happening. Yesterday I crashed In the examples I was toying with yesterday I didn't need registering new serializers because I was taking care to simply pass or return numpy objects. I will close this issue for now and reopen it only if I get the segfaults again. |
Ok sounds good. Definitely reopen this if the issue occurs again. |
System information
pip install ray
)python main.py
, wheremain.py
is:Describe the problem
The code above results in a:
I had a good initial experience toying with Ray and PyTorch, was running some benchmarks when I decided to check the CUDA support. Is Ray compatible with PyTorch CudaTensors?
Source code / logs
/tmp/ray
and/tmp/raylogs
are empty.The text was updated successfully, but these errors were encountered: