Skip to content

Hyperdrive with RTX Geforce 5090 (compute capability is 12.0) #66

Description

@syoshiura

Hi hyperdrive developers,

I encountered an issue when I install hyperdrive(and hyperbeam) with capability of GPU (Geforce 5090, its compute capability is 12.0.). The issue was that hyperbeam and hyperdrive do not accept HYPERDRIVE_CUDA_COMPUTE=120.

To solve the issue, first I downloaded mwa_hyperbeam,

git clone https://github.com/MWATelescope/mwa_hyperbeam.git
cd mwa_hyperbeam

and I edited build.rs as

- const DEFAULT_CUDA_SMS: &[u16] = &[60, 61, 70, 75, 80, 86];
+ const DEFAULT_CUDA_SMS: &[u16] = &[60, 61, 70, 75, 80, 86, 120];
- if compute.len() != 2
+ if compute.len() != 3

.
Similarly for hyperdrive,

git clone https://github.com/MWATelescope/mwa_hyperdrive
cd mwa_hyperdrive

, and I edited build.rs as

- const DEFAULT_CUDA_SMS: &[u16] = &[60, 61, 70, 75, 80, 86];
+ const DEFAULT_CUDA_SMS: &[u16] = &[60, 61, 70, 75, 80, 86, 120];
- if compute.len() != 2
+ if compute.len() != 3

, and also Cargo.toml is edited as

- mwa_hyperbeam = "0.10.2"
+ mwa_hyperbeam = { path = "../mwa_hyperbeam" }

After these edits, I can install hyperdrive with CUDA_COMPUTE=120

export HYPERDRIVE_CUDA_COMPUTE=120
export HYPERBEAM_CUDA_COMPUTE=120
cargo install --path . --locked --features=cuda,gpu-single

It seems that the hyperdrive is working, but could you please let me know if it's dangerous?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions