Open teena3 opened 2 years ago
Few things:
traced_m = torch.jit.trace(resnet.to('opencl:0'), (x.to('opencl:0')) ... Unknown device for graph fuser
Probably some other case that need to know device or something else. I must say opencl backend is really in early stages. So there many things that likely not going to work and need to be fixed.
Also I get different error when resnet is resnet50 or 18:
NotImplementedError: Could not run 'aten::isnan' with arguments from the 'PrivateUse1' backend
Which is not implemented yet.
Hi,
I am trying to use pytorch/glow with OPENCL backend enabled. I want to compare inference time on GPU for pytorch with glow enabled/disabled, thus I built pytorch with opencl as instructed in this repo.
Crash is not observed when model and data are not copied to GPU in infer_glow() via something.to('opencl:0') i.e. the below lines are commented
Could you please help me understand the issue, following is the gdb backtrace:
gdb_bt.txt
uname -a Linux ip-192-168-1-210 5.4.0-1071-aws #76~18.04.1-Ubuntu SMP Mon Mar 28 17:49:57 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Commit id's of the setup: dlprimitives: 6eb5794aec7b48fe2e2b8d1fa7b1eab712d72d87 pytorch-dlprim: 7ec2e47cd56fdad86e08d3aff65f7c35fc89b575 pytorch: eb74af18af6e90ae47f24997af8468bf7b9deb72 glow: cda5383b1609ebad1a3631ca77b41b8a863443d4 Built glow with few adaptations as above pytorch commit was bit older: git_diff.txt clinfo: clinfo.txt
Python Code: opencl_pytorch_glow.txt As I was not able to upload .py here, thus converted it to .txt
I also tried to use:
I am facing the below error:
Please let me know, if you need any more information.