Can't use cuda.
See original GitHub issueHi,
I use conda install -c prigoyal pytorch=0.4.0
to install pytorch and run ./demo_test.sh
.
Everything goes well until line 105 of test.py:
segmentation_module.cuda()
The output is:
./demo_test.sh: line 30: 27040 Segmentation fault (core dumped) python3 -u test.py --model_path $MODEL_PATH --test_img $TEST_IMG --arch_encoder resnet50_dilated8 --arch_decoder ppm_bilinear_deepsup --fc_dim 2048 --result $RESULT_PATH
I guess it’s the problem of pytorch, and test the code:
import torch
x = torch.Tensor(3,3)
x.cuda()
Similar error : Segmentation fault (core dumped)
.
Any suggestions?
BTW, my other projects of pytorch 0.2.0 and 0.3.0 on this machine work well.
Thanks.
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Trying To Find Reason Why RTX 3060 Can't Use CUDA in ...
According to the screen dump, the compute mode in your GPU is set to “Default”, which means that CUDA does not seem to...
Read more >Pytorch says that CUDA is not available (on Ubuntu)
Pytorch doesn't use the system cuda when installed via pip or conda, it ships with its own copy of the cuda runtime and...
Read more >Unable to use CUDA from artifacts - GPU
I'm trying to use julia in an HPC environment. I load the CUDA driver using slurm's “module” functionality. I can see where it...
Read more >Can not use .cuda() function to load the model into GPU ...
I think the problem is related to CUDA version since the new pytorch 1.3 is built using CUDA 10.1.243 and my current CUDA...
Read more >Ubuntu 22.04 cannot install nvidia-utils-515 and ...
Procedure · To do this, you need to firstly remove the existing driver (510 or 515), and/or the toolkit (may have been installed...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Using pytorch 0.4.0 from ostrokach, it can work fine on my machine.
conda install -c ostrokach-forge pytorch
@zhiweifang It is because PyTorch’s source codes are still being aggressively changed…
We tried to catch up with the latest source codes, but realized that if we use the newest codes, it doesn’t work on any older version…
We will update and fix warnings when a stable version of PyTorch is released.