frk2 / cuda-fun

Cython cuda wrapper to switch contexts for running multiple contexts app in the same process
4 stars 2 forks source link

How to import functions? #1

Closed boxer276 closed 5 years ago

boxer276 commented 5 years ago

Your work for zed is excellent, but I cannot find a way to call PyCudaContext(). Would you please show me a demo about how to "import XXX" and "XXX.PyCudaContext()"?

boxer276 commented 5 years ago

Sorry for the dummy question. I tried it out myself. It should be "Import cuda_context" and zed_cuda_ctx = cuda_context.PyCudaContext()"