Comments (11)
Thanks for reporting. I will look into it. I guess python setup.py test
also fails for you?
from pytorch_cluster.
Thank you for looking into it! You are right. The test failed.
from pytorch_cluster.
Do all GPU tests fail?
from pytorch_cluster.
Yes, I think so. 55 failed and 56 passed. All the failed ones are GPU tests.
from pytorch_cluster.
Ok, so this is not a problem with the random walk function, but the installation of torch-cluster. Can you post the log of
rm -rf build && python setup.py install
from pytorch_cluster.
Here's the log. log.txt
from pytorch_cluster.
It seems the whole installation goes fine. However, I still get wrong results running random walk on GPU. Do you have any idea what went wrong?
from pytorch_cluster.
Unfortunately no :( Logs look okay to me. Maybe you have multiple versions installed where one installation failed? You can try removing torch-cluster
repeatedly and install again.
from pytorch_cluster.
Hi, @rusty1s, thanks for your timely reply. I tried your suggestion, but the problem is still unsolved.
I tried some other tests and got more information about this error. When I used the GPU version of scatter_max
and scatter_min
in package torch_scatter
, I met this error again, and the interesting thing is that the GPU version of functions' like scatter_add
and scatter_mean
worked fine.
Maybe there's something common about scatter_max
and random_walk
that caused the error?
P.S. Here's the test results of scatter_max
and scatter_add
import torch
from torch_scatter import *
# device = 'cpu'
device = 'cuda:1'
src = torch.tensor([[1., 1.], [1., 1.], [4., 2.], [2., 4.]]).to(device)
index = torch.tensor([0, 0, 1, 1]).to(device)
index = index.view(-1,1).repeat(1,src.size()[1])
res1, _ = scatter_max(src, index, dim=0, fill_value=1.)
res2 = scatter_add(src, index, dim=0, dim_size=2, fill_value=0.)
print(res1)
print(res2)
The results are
tensor([[1., 1.],
[1., 1.]], device='cuda:1')
tensor([[2., 2.],
[6., 6.]], device='cuda:1')
I tried to debug it and I found that line 13 func(src, index, out, arg, dim)
of max.py
did not change the variable out
at all. Do you have any clue about what caused the problem?
from pytorch_cluster.
Yeah, those are the functions that call our own kernel implementations. It seems that there is something wrong with you GPU setup in conjunction with the provided cuda code.
from pytorch_cluster.
This issue had no activity for 6 months. It will be closed in 2 weeks unless there is some new activity. Is this issue already resolved?
from pytorch_cluster.
Related Issues (20)
- Help!RuntimeError: Not complied with CUDA support HOT 11
- Support Python 3.11 for conda packages HOT 3
- General Union types are not currently supported in v1.6.1 HOT 2
- CUDA 12.1 binaries HOT 3
- documentation HOT 2
- No such operator torch_cluster::fps_ptr_list HOT 2
- random_walk result not reproducible if the walk is biased HOT 8
- How to run fps algorithm in editable mode? HOT 2
- Binaries for PPC (ppc64le) architecture. HOT 1
- How to install pytorch_cluster in a win10 based system HOT 2
- can k >100 in knn? HOT 2
- warning when work with torch.compile HOT 2
- RuntimeError: Not compiled with CUDA support,help please.my torch is 2.1.0 and my cuda is 12.0. HOT 3
- Conda installation wants to downgrade to PyTorch 1.12.1 HOT 3
- Still there: Incompatibility with bfloat16 HOT 4
- setup.py depends on `torch` HOT 4
- Torch cluster fails to install correctly on latest GH actions runner image HOT 5
- Unable to pip install torch-cluster HOT 2
- [Installation/Compiling] Building wheel for torch-cluster failed for CUDA 12.1 HOT 2
- Simplify build wheels github workflow pipeline
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pytorch_cluster.