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 @@ -165,7 +165,7 @@ GPUconstexpr() GlobalTrackID::mask_t sMasks[GlobalTrackID::NSources] = ///< dete
GlobalTrackID::mask_t(math_utils::bit2Mask(GlobalTrackID::MCHMID)) // Temporary ordering
};

#ifndef __OPENCL__
#if !defined(__OPENCL__) && !defined(__METAL__)
GPUconstexpr() GlobalTrackID::mask_t sTrackSources =
sMasks[GlobalTrackID::ITS] | sMasks[GlobalTrackID::TPC] | sMasks[GlobalTrackID::MFT] | sMasks[GlobalTrackID::MCH] | sMasks[GlobalTrackID::ITSTPC] | sMasks[GlobalTrackID::TPCTOF] |
sMasks[GlobalTrackID::TPCTRD] | sMasks[GlobalTrackID::MFTMCH] | sMasks[GlobalTrackID::ITSTPCTRD] | sMasks[GlobalTrackID::ITSTPCTOF] | sMasks[GlobalTrackID::TPCTRDTOF] |
Expand All @@ -177,7 +177,7 @@ GPUconstexpr() GlobalTrackID::mask_t sTrackSources =
GPUdi() constexpr GlobalTrackID::DetID::mask_t GlobalTrackID::getSourceDetectorsMask(int i) { return globaltrackid_internal::SourceDetectorsMasks[i]; }
GPUdi() constexpr GlobalTrackID::mask_t GlobalTrackID::getSourceMask(int s) { return globaltrackid_internal::sMasks[s]; }

#ifndef __OPENCL__
#if !defined(__OPENCL__) && !defined(__METAL__)
GPUdi() bool GlobalTrackID::isTrackSource(int s)
{
return globaltrackid_internal::sTrackSources[s];
Expand Down
3 changes: 3 additions & 0 deletions GPU/GPUTracking/TPCClusterFinder/CfChargePos.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ struct CfChargePos {
: gpad(tpcGlobalPadIdx(row, pad)), timePadded(t + GPUCF_PADDING_TIME)
{
}
#ifdef __METAL__
constexpr GPUhdi() CfChargePos(tpccf::Row row, tpccf::Pad pad, tpccf::TPCFragmentTime t) constant : gpad(tpcGlobalPadIdx(row, pad)), timePadded(t + GPUCF_PADDING_TIME) {}
#endif

GPUdi() CfChargePos(const tpccf::GlobalPad& p, const tpccf::TPCFragmentTime& t) : gpad(p), timePadded(t) {}

Expand Down
3 changes: 3 additions & 0 deletions GPU/Utils/GPUCommonBitSet.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ class bitset
GPUdDefault() constexpr bitset(const __constant bitset&) = default;
#endif // __OPENCL__
GPUd() constexpr bitset(uint32_t vv) : v(vv) {};
#ifdef __METAL__
GPUd() constexpr bitset(uint32_t vv) constant : v(vv) {};
#endif
static GPUglobalconstexpr() uint32_t full_set = ((1ul << N) - 1ul);

GPUd() constexpr bool all() const { return (v & full_set) == full_set; }
Expand Down
Loading