Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Rust-GPU/rust-cuda
/ test_init
Function
test_init
crates/cust/src/device.rs:385–388 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
383
use std::error::Error;
384
385
fn test_init() -> Result<(), Box<dyn Error>> {
386
crate::init(crate::CudaFlags::empty())?;
387
Ok(())
388
}
389
390
#[test]
391
fn test_num_devices() -> Result<(), Box<dyn Error>> {
Callers
4
test_num_devices
Function · 0.85
test_devices
Function · 0.85
test_get_name
Function · 0.85
test_get_memory
Function · 0.85
Calls
1
init
Function · 0.70
Tested by
no test coverage detected