mirror of
https://github.com/vosen/ZLUDA.git
synced 2025-08-02 14:57:43 +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,
|
dev: cuda_types::cuda::CUdevice,
|
||||||
) -> CUresult {
|
) -> CUresult {
|
||||||
let handle = Context::wrap(Context::new(dev));
|
let handle = Context::wrap(Context::new(dev));
|
||||||
|
// TODO: optimize
|
||||||
|
set_current(handle)?;
|
||||||
*ctx = handle;
|
*ctx = handle;
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user