rtx-cfd legacy GPU tests: the current CudaKernelManager API (Arc-held manager, allocate-on-copy, copy_from_device returning the host vector), MatrixOpsKernel::tridiagonal_matvec added over the existing kernel, PoissonKernel::solve_jacobi_2d kept as the older name; CfdConfig literals take ..Default
CI / Build (macos-latest) (push) Waiting to run
CI / Test (macos-latest) (push) Blocked by required conditions
CI / Test (ubuntu-latest) (push) Blocked by required conditions
CI / Python Bindings (maturin) (macos-latest) (push) Blocked by required conditions
CI / Python Bindings (maturin) (ubuntu-latest) (push) Blocked by required conditions
CI / WASM Build + Size Check (push) Blocked by required conditions
CI / Distributed Training Tests (push) Blocked by required conditions
CI / CI Success (push) Blocked by required conditions
CI / Build CPU-Only (Explicit) (push) Failing after 6s
CI / Build (ubuntu-latest) (push) Failing after 6s
Documentation / Build API Documentation (push) Failing after 6s
Documentation / Build User Guide (push) Successful in 7s
CI / Format Check (push) Failing after 13s
CI / Clippy Check (push) Failing after 37s
Performance Benchmarks / Run Benchmarks (push) Successful in 3m23s
CI / Build (macos-latest) (push) Waiting to run
CI / Test (macos-latest) (push) Blocked by required conditions
CI / Test (ubuntu-latest) (push) Blocked by required conditions
CI / Python Bindings (maturin) (macos-latest) (push) Blocked by required conditions
CI / Python Bindings (maturin) (ubuntu-latest) (push) Blocked by required conditions
CI / WASM Build + Size Check (push) Blocked by required conditions
CI / Distributed Training Tests (push) Blocked by required conditions
CI / CI Success (push) Blocked by required conditions
CI / Build CPU-Only (Explicit) (push) Failing after 6s
CI / Build (ubuntu-latest) (push) Failing after 6s
Documentation / Build API Documentation (push) Failing after 6s
Documentation / Build User Guide (push) Successful in 7s
CI / Format Check (push) Failing after 13s
CI / Clippy Check (push) Failing after 37s
Performance Benchmarks / Run Benchmarks (push) Successful in 3m23s
This commit is contained in:
@@ -20,6 +20,7 @@ mod cuda_kernel_manager_tests {
|
||||
viscosity: 0.01,
|
||||
density: 1.0,
|
||||
device_id: 0,
|
||||
..CfdConfig::default()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -31,7 +32,7 @@ mod cuda_kernel_manager_tests {
|
||||
}
|
||||
|
||||
let config = create_test_config();
|
||||
let manager = CudaKernelManager::new(&config)?;
|
||||
let manager = std::sync::Arc::new(CudaKernelManager::new(&config)?);
|
||||
|
||||
// Verify manager is created successfully
|
||||
// Context and stream should be valid (non-null references)
|
||||
@@ -49,7 +50,7 @@ mod cuda_kernel_manager_tests {
|
||||
}
|
||||
|
||||
let config = create_test_config();
|
||||
let manager = CudaKernelManager::new(&config)?;
|
||||
let manager = std::sync::Arc::new(CudaKernelManager::new(&config)?);
|
||||
|
||||
// Test that required modules are loaded
|
||||
// Getting a module should succeed and return a valid Arc reference
|
||||
@@ -72,7 +73,7 @@ mod cuda_kernel_manager_tests {
|
||||
}
|
||||
|
||||
let config = create_test_config();
|
||||
let manager = CudaKernelManager::new(&config)?;
|
||||
let manager = std::sync::Arc::new(CudaKernelManager::new(&config)?);
|
||||
|
||||
// Test that non-existent module returns error
|
||||
let result = manager.get_module("nonexistent_module");
|
||||
@@ -92,7 +93,7 @@ mod cuda_kernel_manager_tests {
|
||||
}
|
||||
|
||||
let config = create_test_config();
|
||||
let manager = CudaKernelManager::new(&config)?;
|
||||
let manager = std::sync::Arc::new(CudaKernelManager::new(&config)?);
|
||||
|
||||
// Test allocating GPU memory
|
||||
let size = 1024;
|
||||
@@ -110,7 +111,7 @@ mod cuda_kernel_manager_tests {
|
||||
}
|
||||
|
||||
let config = create_test_config();
|
||||
let manager = CudaKernelManager::new(&config)?;
|
||||
let manager = std::sync::Arc::new(CudaKernelManager::new(&config)?);
|
||||
|
||||
// Test copying data to GPU
|
||||
let host_data: Vec<f32> = (0..100).map(|i| i as f32).collect();
|
||||
@@ -128,7 +129,7 @@ mod cuda_kernel_manager_tests {
|
||||
}
|
||||
|
||||
let config = create_test_config();
|
||||
let manager = CudaKernelManager::new(&config)?;
|
||||
let manager = std::sync::Arc::new(CudaKernelManager::new(&config)?);
|
||||
|
||||
// Test round-trip copy: host -> device -> host
|
||||
let original_data: Vec<f32> = (0..100).map(|i| i as f32 * 0.1).collect();
|
||||
@@ -159,7 +160,7 @@ mod cuda_kernel_manager_tests {
|
||||
}
|
||||
|
||||
let config = create_test_config();
|
||||
let manager = CudaKernelManager::new(&config)?;
|
||||
let manager = std::sync::Arc::new(CudaKernelManager::new(&config)?);
|
||||
|
||||
// Test that synchronization doesn't error
|
||||
manager.synchronize()?;
|
||||
|
||||
Reference in New Issue
Block a user