Skip to content

Commit

Permalink
Merge branch 'threaded-init' into 'master'
Browse files Browse the repository at this point in the history
allow other threads to run during device init() and make_context() since those...

See merge request inducer/pycuda!14
  • Loading branch information
inducer committed Jan 17, 2019
2 parents 1f517c6 + 73402db commit fe27342
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cpp/cuda.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ namespace pycuda
inline
void init(unsigned int flags)
{
CUDAPP_CALL_GUARDED(cuInit, (flags));
CUDAPP_CALL_GUARDED_THREADED(cuInit, (flags));
}

inline
Expand Down Expand Up @@ -822,7 +822,7 @@ namespace pycuda
context::prepare_context_switch();

CUcontext ctx;
CUDAPP_CALL_GUARDED(cuCtxCreate, (&ctx, flags, m_device));
CUDAPP_CALL_GUARDED_THREADED(cuCtxCreate, (&ctx, flags, m_device));
boost::shared_ptr<context> result(new context(ctx));
context_stack::get().push(result);
return result;
Expand Down

0 comments on commit fe27342

Please sign in to comment.