Skip to content

Commit 88a1751

Browse files
committed
Update HCAL local reconstruction on GPUs (cms-sw#470)
Move common ROOT dictionaries to a dedicated new package, CUDADataFormats/StdDictionaries . Remove unnecessary dictionary declarations. Determine the default module label automatically for templated and non-templated EDProducers and ESProducer, and remove the "name()" static method previously used to distinguish their template arguments. Use Event::emplace instead of Event:put where relevant. Protect the use of CUDA API calls in module constructors and destructors, checking that the CUDAService is available and enabled. Move the definition of EventSetup records to a package/library that does not define plugins.
1 parent f9e4e0f commit 88a1751

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<use name="rootcore"/>
2+
<use name="HeterogeneousCore/CUDAUtilities"/>
3+
<export>
4+
<lib name="1"/>
5+
</export>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#include <cstddef>
2+
#include <vector>
3+
4+
#include "HeterogeneousCore/CUDAUtilities/interface/HostAllocator.h"
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<lcgdict>
2+
<class name="std::vector<std::byte, cms::cuda::HostAllocator<std::byte, 0>>" />
3+
4+
<class name="std::vector<uint8_t, cms::cuda::HostAllocator<uint8_t, 0>>" />
5+
<class name="std::vector<uint16_t, cms::cuda::HostAllocator<uint16_t, 0>>" />
6+
<class name="std::vector<uint32_t, cms::cuda::HostAllocator<uint32_t, 0>>" />
7+
8+
<class name="std::vector<int8_t, cms::cuda::HostAllocator<int8_t, 0>>" />
9+
<class name="std::vector<int16_t, cms::cuda::HostAllocator<int16_t, 0>>" />
10+
<class name="std::vector<int32_t, cms::cuda::HostAllocator<int32_t, 0>>" />
11+
12+
<class name="std::vector<float, cms::cuda::HostAllocator<float, 0>>" />
13+
<class name="std::vector<double, cms::cuda::HostAllocator<double, 0>>" />
14+
</lcgdict>

0 commit comments

Comments
 (0)