Skip to content

Commit 721111d

Browse files
committed
DetectorsRaw: place the RDH constants in the constant address space
MSL requires every variable at program scope, class-scope statics included, to name an address space. GPUglobalconstexpr() expands to constexpr everywhere except Metal, so this is a no-op for host, CUDA, HIP, OpenCL and cling. These were missed by the earlier pass: the header they sit in only started being compiled once the errors ahead of it were gone.
1 parent 1d679bb commit 721111d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎Detectors/Raw/include/DetectorsRaw/RDHUtils.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ struct RDHUtils {
5151
using RDHv6 = o2::header::RAWDataHeaderV6;
5252
using RDHv7 = o2::header::RAWDataHeaderV7; // update this for every new version
5353

54-
static constexpr int GBTWord128 = 16; // length of GBT word
55-
static constexpr int MAXCRUPage = 512 * GBTWord128;
54+
static GPUglobalconstexpr() int GBTWord128 = 16; // length of GBT word
55+
static GPUglobalconstexpr() int MAXCRUPage = 512 * GBTWord128;
5656
/// get numeric version of the RDH
5757

5858
///_______________________________

0 commit comments

Comments
 (0)