Skip to content
Open
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
10 changes: 8 additions & 2 deletions GPU/GPUTracking/TPCClusterFinder/CfArray2D.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,13 @@ class LinearLayout
template <tpccf::SizeT S>
struct GridSize;

// GridSize for 1 byte and 2 byte elements are adjusted for 128 byte cachelines,
// as these are prevelant on modern GPUs.

template <>
struct GridSize<1> {
enum {
Width = 8,
Width = 16,
Height = 8,
};
};
Expand All @@ -98,10 +101,13 @@ template <>
struct GridSize<2> {
enum {
Width = 8,
Height = 4,
Height = 8,
};
};

// GridSize for 4 bytes is only used for MC indexing on CPU.
// So assume 64 byte cachelines here instead.

template <>
struct GridSize<4> {
enum {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ class GPUTPCCFCheckPadBaseline : public GPUKernelTemplate
TimebinsPerCacheline = TPCMapMemoryLayout<uint16_t>::Height,
EntriesPerCacheline = PadsPerCacheline * TimebinsPerCacheline,
NumOfCachedPads = GPUCA_WARP_SIZE / TimebinsPerCacheline,
NumCLsPerWarp = GPUCA_WARP_SIZE / EntriesPerCacheline,
NumOfCachedTBs = TimebinsPerCacheline * 8,
// Threads index shared memory as [iThread / MaxNPadsPerRow][iThread % MaxNPadsPerRow].
// Rounding up to a multiple of PadsPerCacheline ensures iThread / MaxNPadsPerRow < NumOfCachedTBs
Expand Down