Skip to content

Commit 4f2ef79

Browse files
davidrohrktf
authored andcommitted
GPU: Fix copy and paste error: missing attribute resolution in kernel calls
1 parent 67cc281 commit 4f2ef79

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

GPU/GPUTracking/Base/GPUReconstructionKernelMacros.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,15 @@
4545
#define GPUCA_ATTRRES(...) GPUCA_M_EXPAND(GPUCA_M_CAT(GPUCA_ATTRRES_, GPUCA_M_FIRST(__VA_ARGS__)))(__VA_ARGS__)
4646
// GPU Kernel entry point for single sector
4747
#define GPUCA_KRNLGPU_SINGLE(x_class, x_attributes, x_arguments, x_forward) \
48-
GPUg() void GPUCA_M_CAT(krnl_, GPUCA_M_KRNL_NAME(x_class))(GPUCA_CONSMEM_PTR int iSlice GPUCA_M_STRIP(x_arguments)) \
48+
GPUg() void GPUCA_ATTRRES(GPUCA_M_SHIFT(GPUCA_M_STRIP(x_attributes))) GPUCA_M_CAT(krnl_, GPUCA_M_KRNL_NAME(x_class))(GPUCA_CONSMEM_PTR int iSlice GPUCA_M_STRIP(x_arguments)) \
4949
{ \
5050
GPUshared() typename GPUCA_M_STRIP_FIRST(x_class)::MEM_LOCAL(GPUSharedMemory) smem; \
5151
GPUCA_M_STRIP_FIRST(x_class)::template Thread<GPUCA_M_KRNL_NUM(x_class)>(get_num_groups(0), get_local_size(0), get_group_id(0), get_local_id(0), smem, GPUCA_M_STRIP_FIRST(x_class)::Processor(GPUCA_CONSMEM)[iSlice] GPUCA_M_STRIP(x_forward)); \
5252
}
5353

5454
// GPU Kernel entry point for multiple sector
5555
#define GPUCA_KRNLGPU_MULTI(x_class, x_attributes, x_arguments, x_forward) \
56-
GPUg() void GPUCA_M_CAT3(krnl_, GPUCA_M_KRNL_NAME(x_class), _multi)(GPUCA_CONSMEM_PTR int firstSlice, int nSliceCount GPUCA_M_STRIP(x_arguments)) \
56+
GPUg() void GPUCA_ATTRRES(GPUCA_M_SHIFT(GPUCA_M_STRIP(x_attributes))) GPUCA_M_CAT3(krnl_, GPUCA_M_KRNL_NAME(x_class), _multi)(GPUCA_CONSMEM_PTR int firstSlice, int nSliceCount GPUCA_M_STRIP(x_arguments)) \
5757
{ \
5858
const int iSlice = nSliceCount * (get_group_id(0) + (get_num_groups(0) % nSliceCount != 0 && nSliceCount * (get_group_id(0) + 1) % get_num_groups(0) != 0)) / get_num_groups(0); \
5959
const int nSliceBlockOffset = get_num_groups(0) * iSlice / nSliceCount; \

0 commit comments

Comments
 (0)