Open fwyzard opened 3 months ago
cms-bot internal usage
A new Issue was created by @fwyzard.
@Dr15Jones, @antoniovilela, @smuzaffar, @rappoccio, @makortel, @sextonkennedy can you please review it and eventually sign/assign? Thanks.
cms-bot commands are listed here
assign heterogeneous
New categories assigned: heterogeneous
@fwyzard,@makortel you have been requested to review this Pull request/Issue and eventually sign? Thanks
I agree the explicit Acc1D
would be worth of exploring.
I'd further argue the Acc1D
might be interesting option also when the function is otherwise templated, because the function (usually?) makes some assumption on the dimensionality of the Acc
, and I'd assume the explicit Acc1D
would ensure consistency between the function and the alpaka::exec()
that calls the kernel calling the function.
The common approach for alpaka device code is to template all functions on the accelerator type:
Another approach could be to move the code inside the
ALPAKA_ACCELERATOR_NAMESPACE
and use the accelerator type explicitly:This should let us move alpaka code that is not otherwise templated from header files to
.dev.cc
files.Now that we start to have a sizeable alpaka-based code base, we should maybe re-evaluate both options.