()
| 298 | |
| 299 | #[test] |
| 300 | fn test_cuda_malloc() { |
| 301 | let _context = crate::quick_init().unwrap(); |
| 302 | unsafe { |
| 303 | let device_mem = cuda_malloc::<u64>(1).unwrap(); |
| 304 | assert!(!device_mem.is_null()); |
| 305 | cuda_free(device_mem).unwrap(); |
| 306 | } |
| 307 | } |
| 308 | |
| 309 | #[test] |
| 310 | fn test_cuda_malloc_zero_bytes() { |
nothing calls this directly
no test coverage detected