Skip to content

How to use gpu to run SCALE #20

@Telogen

Description

@Telogen

I tried to use GPU to run SCALE by this commond
SCALE.py -d a.txt -k 20 --binary --gpu 1
But I got this error:

Traceback (most recent call last):
  File "/opt/conda/bin/SCALE.py", line 71, in <module>
    torch.cuda.set_device(args.gpu)
  File "/opt/conda/lib/python3.8/site-packages/torch/cuda/__init__.py", line 263, in set_device
    torch._C._cuda_setDevice(device)
RuntimeError: CUDA error: invalid device ordinal

Could you please tell me how to use GPU correctly to run SCALE? Many thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions