Closed Ethan-Chen-plus closed 1 year ago
Hello,
could you try using RL(device_type='gpu')
(in lowercase) to see if it works? You can also try to specify the device ID with the device_ids
parameter, e.g., setting device_ids=0
.
This works. However I still have 2 questions:
gpu
can speed up compared to cpu
, however it doesn't speed up much: 4.00s/it
vs 4.25s/it
.Nice~
For your questions,
CUDA_VISIBLE_DEVICES
environment variable but I believe the code itself will only use a single device, so it's mainly useful for setting which device to use.Thanks a lot for your help!
When I use castle.algorithms.RL to fit my data, I use device
GPU
, but by usingnvidia-smi
to check, there is no running progress on gpus.