summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorJason Henline <jhen@google.com>2016-10-28 00:54:02 +0000
committerJason Henline <jhen@google.com>2016-10-28 00:54:02 +0000
commitbdc410babaee93aad9e7b582e49ba35a774e3825 (patch)
tree62e05668609702f3116a050280dbdaed050033d9 /clang/lib/Frontend/CompilerInvocation.cpp
parent30665147f92a237094502ad9e8e59914cdbecfc1 (diff)
downloadbcm5719-llvm-bdc410babaee93aad9e7b582e49ba35a774e3825.tar.gz
bcm5719-llvm-bdc410babaee93aad9e7b582e49ba35a774e3825.zip
[Acxxel] Remove setActiveDeviceForThread
Summary: After experimenting with CUDA, I realized that we really only need to set the active context right before creating an object such as a stream or a device memory allocation. When we go on to use these objects later, it is fine if the context that created them is no longer active, operations with those objects will succeed anyway. Since it turns out that we don't have to check the active context for every operation, it makes sense to hide this active context from users (by removing the "ActiveDeviceForThread" setter and getter) and to change the Acxxel API to explicitly pass in the device ID to create objects. This change improves the Acxxel API and greatly simplifies the CUDA and OpenCL implementations because they no longer require thread_local data. Reviewers: jlebar, jprice Subscribers: mgorny, parallel_libs-commits Differential Revision: https://reviews.llvm.org/D26050 llvm-svn: 285372
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud