You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With #2242 we changed the behavior of global and constant device memory.
The new macro ALPAKA_STATIC_ACC_MEM_GLOBAL contains now a template ACC, therefore we will get a unique type definition for each accelerator.
A 1 dimensional acc has no access to the device global variable of the 2 dimensional acc. This was not the case in older alpaka versions.
This behavior change is most likely very easy to fix by adding a method to get the reference to the global memory. This method should use the device type derived from the accelerator to get the global memory. In this case all CPU accelerators will have access to the same memory address.
I marked this behavior change as bug and will try to address this issue after my vacations.
Can we change the code to use the Tag as template argument ?
I am not sure if Tag or ´DevecieTypeis better. With one eye already looking to managed memory or system wide availbable memory I would say we should useDeviceType`
With #2242 we changed the behavior of global and constant device memory.
The new macro
ALPAKA_STATIC_ACC_MEM_GLOBAL
contains now a templateACC
, therefore we will get a unique type definition for each accelerator.A 1 dimensional acc has no access to the device global variable of the 2 dimensional acc. This was not the case in older alpaka versions.
This behavior change is most likely very easy to fix by adding a method to get the reference to the global memory. This method should use the device type derived from the accelerator to get the global memory. In this case all CPU accelerators will have access to the same memory address.
I marked this behavior change as bug and will try to address this issue after my vacations.
ping @AuroraPerego only that you know about it.
The text was updated successfully, but these errors were encountered: