Skip to content

Commit

Permalink
put the tests where a real cuda device needs to be tehre as ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
gbin committed Jan 17, 2025
1 parent ba67a64 commit 0e14cc0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/cu29_runtime/src/pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,7 @@ mod tests {

#[cfg(all(feature = "cuda", not(target_os = "macos")))]
#[test]
#[ignore] // Can only be executed if a real CUDA device is present
fn test_cuda_pool() {
use cudarc::driver::CudaDevice;
let device = CudaDevice::new(0).unwrap();
Expand All @@ -503,6 +504,7 @@ mod tests {

#[cfg(all(feature = "cuda", not(target_os = "macos")))]
#[test]
#[ignore] // Can only be executed if a real CUDA device is present
fn test_copy_roundtrip() {
use cudarc::driver::CudaDevice;
let device = CudaDevice::new(0).unwrap();
Expand Down

0 comments on commit 0e14cc0

Please sign in to comment.