question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

RuntimeError: CUDA error: invalid device function

See original GitHub issue

❓ Questions & Help:

when i run

python geniepath.py

image package version failure or?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:22 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
rusty1scommented, Dec 24, 2019

It seems that you need torch>=1.2.0. Alternatively, just re-write it to

data.y[mask].long().sum()
1reaction
rusty1scommented, Dec 24, 2019

This is weird, and not related to torch-scatter.

import torch
torch.tensor([True, False, True]).sum()

works for me (PyTorch 1.3.0).

Read more comments on GitHub >

github_iconTop Results From Across the Web

RuntimeError: CUDA error: invalid device function · Issue #234
I think this is unrelated to the values in the inputs. This is hardware specific: I think there is a mismatch between the...
Read more >
CUDA - invalid device function, how to know [architecture ...
I am getting the following error when running the ...
Read more >
cudaLaunchKernel returned status 98: invalid device function
Where I've seen the “invalid device function” error is typically due to a mismatch in the CUDA version or target device. So given...
Read more >
NVIDIA CUDA Library: cudaError
Common causes include dereferencing an invalid device pointer and accessing out of bounds shared memory. The device cannot be used until cudaThreadExit() is ......
Read more >
RuntimeError: CUDA error: invalid device ordinal issue with ...
I am trying to run the basic CIRFAR example, but keep running into errors when using ray train + ray tune, here is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found