[Openmp-commits] [PATCH] D34804: [OpenMP] libomptarget / CUDA plugin: Check for existing CUDA context before new context creation
Hal Finkel via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Thu Jun 29 08:37:33 PDT 2017
hfinkel added a comment.
In https://reviews.llvm.org/D34804#794830, @grokos wrote:
> It seems there is a bug but it's not related to context creation. False alarm, I'm cancelling the revision. Sorry for that...
What do you mean?
================
Comment at: libomptarget/plugins/cuda/src/rtl.cpp:257
+ err = cuCtxGetCurrent(&DeviceInfo.Contexts[device_id]);
+ if(DeviceInfo.Contexts[device_id] == NULL){
+ // Create the context and save it to use whenever this device is selected.
----------------
Spaces needed before/after parens.
Repository:
rL LLVM
https://reviews.llvm.org/D34804
More information about the Openmp-commits
mailing list