Closed LukeLIN-web closed 1 year ago
When I try to run
python reddit_serving.py
It shows
Process Process-30:
Traceback (most recent call last):
File "/opt/conda/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/opt/conda/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/root/share/torch-quiver/srcs/python/quiver/serving.py", line 120, in cpu_sampler_worker_loop
os.sched_setaffinity(0, [2*(cpu_offset+rank)])
OSError: [Errno 22] Invalid argument
Process Process-35:
Traceback (most recent call last):
File "/opt/conda/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/opt/conda/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/root/share/torch-quiver/examples/serving/reddit/reddit_serving.py", line 53, in print_result
os.sched_setaffinity(0, [2*(cpu_offset+rank)])
OSError: [Errno 22] Invalid argument
This is because os.environ['CUDA_VISIBLE_DEVICES'] = '6, 7'
I have 3 V100 GPUs.
I run seperately
it shows [0,1,2] But in the program device list is empty, []
This seems because my quiver cannot detect GPU.