cms-patatrack / pixeltrack-standalone

Standalone Patatrack pixel tracking
Apache License 2.0
17 stars 35 forks source link

Make alpaka platforms full objects #402

Closed AuroraPerego closed 1 year ago

AuroraPerego commented 1 year ago

Since 41e9956 in Alpaka the platforms are actual objects and a couple of commits later they have been renamed from Pltf to Platform. This PR propagates these changes to alpaka and alpakatest.

It also replaces cms::alpakatools::enumerate() with alpaka::getDevs() (thanks @fwyzard).

fwyzard commented 1 year ago

What are the thread-safety guarantees of the Platform objects?

Most platform types (all but SYCL IIRC) are empty objects, so they are implicitly thread safe.

I think the SYCL platforms are thread safe because the underlying SYCL objects are thread safe - but I have not thought too much about this.