Skip to content

running eval_multipro.py error:cuda runtime error #10

@sunwillz

Description

@sunwillz

Hi,
when i finished my training, i run the eval_multipro.py and get below error:
nr_dev: 1
0%| | 0/5145 [00:00<?, ?it/s]process:0, start_idx:0, end_idx:5145
THCudaCheck FAIL file=/pytorch/torch/csrc/cuda/Module.cpp line=34 error=3 : initialization error
Process Process-1:
Traceback (most recent call last):
File "/usr/lib/python3.5/multiprocessing/process.py", line 249, in _bootstrap
self.run()
File "/usr/lib/python3.5/multiprocessing/process.py", line 93, in run
self._target(*self._args, **self._kwargs)
File "eval_multipro.py", line 129, in worker
torch.cuda.set_device(dev_id)
File "/home/sunyangwei/.local/lib/python3.5/site-packages/torch/cuda/init.py", line 264, in set_device
torch._C._cuda_setDevice(device)
RuntimeError: cuda runtime error (3) : initialization error at /pytorch/torch/csrc/cuda/Module.cpp:34

could you please tell me how to solve it?
I run it with pytorch 1.0 on ubuntu16.04

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions