Skip to content

How to correctly configure the GPU in the qlib configuration file #1242

@kitcoun

Description

@kitcoun

❓ Questions and Help

rdagent been talking about GPU-related topics in the chat conversation.

My qlib configuration settings:
`
task:
.....

 GPU: 0 

`

(base) ubuntu@PMS:~$ nvcc -V
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2025 NVIDIA Corporation
Built on Tue_May_27_02:21:03_PDT_2025
Cuda compilation tools, release 12.9, V12.9.86
Build cuda_12.9.r12.9/compiler.36037853_0

The system has long had CUDA installed. Do I not need to install CUDA myself? Will the code install it automatically? Or do I need to configure something separately?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions