Open
Description
The LLVM OMPD ompd_device_initialize() has a few problems for NVIDIA devices (based on a brief review I did of the sources):
- It does not check the kind argument to make sure that it is OMPD_DEVICE_KIND_CUDA.
- It does not check that the sizeof_id is 8.
- It assumes that (*id) is 64-bit aligned, though that's probably OK if the size is 8.
- It saves the id argument in ompd_address_space_handle_t::id, which is the pointer to the 64-bit context, not context value itself. But, I'm not sure that field is used anywhere.
Metadata
Metadata
Assignees
Labels
No labels