-
Notifications
You must be signed in to change notification settings - Fork 102
Open
Labels
Description
[Synopsis]
- Currently, only
1-to-1unconditional matchers are presented in hipify-clang
[ToDo]
- If the signature of a particular API function changed or there are multiple APIs with the same name and different signatures (for C and C++, for instance), we need to map and further transform correspondingly to the
neededHIP analogue (if presented) - If the
neededHIP analogue is not presented (not yet implemented), throw an error or a warning - [Optionally] There might be an additional condition for matching to this or that HIP analogue, for instance:
cuStreamGetCaptureInfoshould be matched and transformed tohipStreamGetCaptureInfoifCUDA_VERSION < 12000, and tohipStreamGetCaptureInfo_v2ifCUDA_VERSION >= 12000; in the first scenario, the call ofcuStreamGetCaptureInfohas the signature used before CUDA 12.0, in the second scenario, the call ofcuStreamGetCaptureInfohas the different signature, changed with CUDA 12.0.