Skip to content

Commit

Permalink
Try clearer placement of CMS_THREAD_SAFE
Browse files Browse the repository at this point in the history
Co-authored-by: Andrea Bocci <andrea.bocci@cern.ch>
  • Loading branch information
makortel and fwyzard committed Mar 31, 2021
1 parent 12c0f78 commit f20397f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion HeterogeneousCore/CUDAUtilities/interface/HostAllocator.h
Expand Up @@ -30,7 +30,7 @@ namespace cms {
using other = HostAllocator<U, FLAGS>;
};

T* allocate CMS_THREAD_SAFE(std::size_t n) const __attribute__((warn_unused_result)) __attribute__((malloc))
CMS_THREAD_SAFE T* allocate(std::size_t n) const __attribute__((warn_unused_result)) __attribute__((malloc))
__attribute__((returns_nonnull)) {
void* ptr = nullptr;
cudaError_t status = cudaMallocHost(&ptr, n * sizeof(T), FLAGS);
Expand Down

0 comments on commit f20397f

Please sign in to comment.