mirror of
https://github.com/vosen/ZLUDA.git
synced 2025-08-02 06:47:46 +03:00
Set newly created context as current (#431)
This commit is contained in:
@ -188,6 +188,8 @@ pub(crate) unsafe fn create_v2(
|
||||
dev: cuda_types::cuda::CUdevice,
|
||||
) -> CUresult {
|
||||
let handle = Context::wrap(Context::new(dev));
|
||||
// TODO: optimize
|
||||
set_current(handle)?;
|
||||
*ctx = handle;
|
||||
Ok(())
|
||||
}
|
||||
|
Reference in New Issue
Block a user