SCALE
SCALE copied to clipboard
CPU control
Hello, I've try your SCALE tools.I want to know how you can control the CPU usage.
SCALE can only use single core of CPU for now while supports multi-GPUs on cuda device.
SCALE can only use single core of CPU for now while supports multi-GPUs on cuda device. I have 56 cores on my server.When I use SCALE,It takes up the whole core.
SCALE can only use single core of CPU for now while supports multi-GPUs on cuda device.
For training data.
Try torch.set_num_threads(1) or refer to this link: https://github.com/pytorch/pytorch/issues/16894.
Add OMP_NUM_THREADS=1 or MKL_NUM_THREADS=1 before SCALE.py. e.g. OMP_NUM_THREADS=1 SCALE.py -d xx which works on our centos system, to use multi-cores, just modify the OMP_NUM_THREADS=num you want
Add OMP_NUM_THREADS=1 or MKL_NUM_THREADS=1 before SCALE.py. e.g. OMP_NUM_THREADS=1 SCALE.py -d xx which works on our centos system, to use multi-cores, just modify the OMP_NUM_THREADS=num you want
Thank you for your answer.