mirror of
https://github.com/vosen/ZLUDA.git
synced 2025-09-05 00:57:24 +00:00
Set newly created context as current (#431)
This commit is contained in:
parent
5deada8426
commit
e8e20294a6
1 changed files with 2 additions and 0 deletions
|
@ -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(())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue