Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion shared/subspace-proof-of-space-gpu/src/cuda.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use subspace_core_primitives::pos::{PosProof, PosSeed};
use subspace_core_primitives::ScalarBytes;
use subspace_kzg::Scalar;

extern "C" {
unsafe extern "C" {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Possibly fixed/suggested by (I don't have Linux locally):

cargo fix --broken-code --features cuda

/// # Returns
/// * `usize` - The number of available GPUs.
fn gpu_count() -> usize;
Expand Down
2 changes: 1 addition & 1 deletion shared/subspace-proof-of-space-gpu/src/rocm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use subspace_core_primitives::pos::{PosProof, PosSeed};
use subspace_core_primitives::ScalarBytes;
use subspace_kzg::Scalar;

extern "C" {
unsafe extern "C" {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Possibly fixed/suggested by (I don't have Linux locally):

cargo fix --broken-code --features cuda

/// # Returns
/// * `usize` - The number of available GPUs.
fn gpu_count() -> usize;
Expand Down