Open jac-cbi opened 2 years ago
Ok, I'm quickly becoming not a fan of ?
error handling. In cust::quick_init()
, which line would throw NotSupported
?
#[must_use = "The CUDA Context must be kept alive or errors will be issued for any CUDA function that is run"]
pub fn quick_init() -> CudaResult<Context> {
init(CudaFlags::empty())?;
let device = Device::get_device(0)?;
let ctx = Context::new(device)?;
ctx.set_flags(ContextFlags::SCHED_AUTO)?;
Ok(ctx)
}
All,
Today I followed the instructions at https://github.com/Rust-GPU/Rust-CUDA/blob/master/guide/src/guide/getting_started.md#docker and I appear to have a successful, running docker container for building Rust-CUDA.
The Nvidia tools seems to report successfully:
The host OS is Gentoo on x86_64, using this to install
nvidia-container-runtime
:IIUC, I've set the environment up correctly. However, I get the following when I try to run the
add
example:The third to the last line is an error message I added, since
Error: Not Supported
isn't very helpful...Is there anything I've missed?