Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#define GPUCA_GPUCODE_HOSTONLY
#define GPUCA_GPUCODE_NO_LAUNCH_BOUNDS

#define GPUCA_KRNL_REG(args) __launch_bounds__(GPUCA_M_STRIP(args))
#define GPUCA_KRNL_REG(args) __launch_bounds__(GPUCA_M_MAX2_3(GPUCA_M_STRIP(args)))

#include "GPUReconstructionCUDAIncludesSystem.h"
#include "GPUReconstructionCUDADef.h"
Expand Down
3 changes: 3 additions & 0 deletions GPU/GPUTracking/Definitions/GPUDefParametersDefaults.h
Original file line number Diff line number Diff line change
Expand Up @@ -574,6 +574,9 @@
#ifndef GPUCA_PAR_COMP_GATHER_MODE
#define GPUCA_PAR_COMP_GATHER_MODE 0
#endif
#ifndef GPUCA_PAR_NO_ATOMIC_PRECHECK
#define GPUCA_PAR_NO_ATOMIC_PRECHECK 0
#endif
#ifndef GPUCA_PAR_DEDX_STORAGE_TYPE
#define GPUCA_PAR_DEDX_STORAGE_TYPE float
#endif
Expand Down
8 changes: 4 additions & 4 deletions GPU/GPUTracking/Merger/GPUTPCGMTrackParam.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -631,11 +631,11 @@ GPUd() float GPUTPCGMTrackParam::AttachClusters(const GPUTPCGMMerger* GPUrestric
for (uint32_t ih = hitFst; ih < hitLst; ih++) {
int32_t id = idOffset + ids[ih];
GPUAtomic(uint32_t)* const weight = weights + id;
#if GPUCA_NO_ATOMIC_PRECHECK == 0
if (myWeight <= *weight) {
continue;
if constexpr (GPUCA_PAR_NO_ATOMIC_PRECHECK == 0) {
if (myWeight <= *weight) {
continue;
}
}
#endif
const cahit2 hh = CA_TEXTURE_FETCH(cahit2, gAliTexRefu2, hits, ih);
const float y = y0 + hh.x * stepY;
const float z = z0 + hh.y * stepZ;
Expand Down