This patch adds fields for the device number and number of devices into
the device environment struct and debugging values.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Can you also double check that this works actually. print the device id and number of devices? Assuming it does, LG
openmp/libomptarget/plugins/cuda/src/rtl.cpp | ||
---|---|---|
906 | The slight problem is that DeviceId here is not the OpenMP device ID, IIRC. |
Comment Actions
Adding TODO, printing the values seems to work. I only have a single device so
the number and ID is 1 and 0 respectively. Both the debugging numbers work.
The slight problem is that DeviceId here is not the OpenMP device ID, IIRC.
The plugins have a local view and we'd need the "global" view.
But for now this is good enough as we don't really deal with mutli-plugin
situations yet. Add a TODO though.