Skip to content

Commit

Permalink
Merge pull request #1143 from emankov/HIPIFY
Browse files Browse the repository at this point in the history
[HIPIFY][RTC][SWDEV-430220][doc][fix] Reflect the functions `nvrtcCompileProgram` and `nvrtcCreateProgram` signatures changes
  • Loading branch information
emankov authored Nov 16, 2023
2 parents c9220a3 + dcf6b7d commit 0532349
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/tables/CUDA_RTC_API_supported_by_HIP.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
|**CUDA**|**A**|**D**|**C**|**R**|**HIP**|**A**|**D**|**C**|**R**|**E**|
|:--|:-:|:-:|:-:|:-:|:--|:-:|:-:|:-:|:-:|:-:|
|`nvrtcAddNameExpression`|8.0| | | |`hiprtcAddNameExpression`|2.6.0| | | | |
|`nvrtcCompileProgram`| | | | |`hiprtcCompileProgram`|2.6.0| | | | |
|`nvrtcCreateProgram`| | | | |`hiprtcCreateProgram`|2.6.0| | | | |
|`nvrtcCompileProgram`| | |8.0| |`hiprtcCompileProgram`|2.6.0| | | | |
|`nvrtcCreateProgram`| | |8.0| |`hiprtcCreateProgram`|2.6.0| | | | |
|`nvrtcDestroyProgram`| | | | |`hiprtcDestroyProgram`|2.6.0| | | | |
|`nvrtcGetCUBIN`|11.1| | | |`hiprtcGetBitcode`|5.3.0| | | | |
|`nvrtcGetCUBINSize`|11.1| | | |`hiprtcGetBitcodeSize`|5.3.0| | | | |
Expand Down
1 change: 1 addition & 0 deletions src/CUDA2HIP.h
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ extern const std::map<llvm::StringRef, hipAPIversions> HIP_CUB_TYPE_NAME_VER_MAP
extern const std::map<llvm::StringRef, hipAPIversions> HIP_CUB_FUNCTION_VER_MAP;
extern const std::map<llvm::StringRef, hipAPIversions> HIP_RTC_TYPE_NAME_VER_MAP;
extern const std::map<llvm::StringRef, hipAPIversions> HIP_RTC_FUNCTION_VER_MAP;
extern const std::map<llvm::StringRef, cudaAPIChangedVersions> CUDA_RTC_FUNCTION_CHANGED_VER_MAP;
extern const std::map<llvm::StringRef, hipAPIversions> HIP_SOLVER_TYPE_NAME_VER_MAP;
extern const std::map<llvm::StringRef, hipAPIversions> HIP_SOLVER_FUNCTION_VER_MAP;

Expand Down
1 change: 1 addition & 0 deletions src/CUDA2HIP_Doc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -794,6 +794,7 @@ namespace doc {
const typeMap &getTypes() const override { return CUDA_RTC_TYPE_NAME_MAP; }
const versionMap &getFunctionVersions() const override { return CUDA_RTC_FUNCTION_VER_MAP; }
const hipVersionMap &getHipFunctionVersions() const override { return HIP_RTC_FUNCTION_VER_MAP; }
const cudaChangedVersionMap& getCudaChangedFunctionVersions() const override { return CUDA_RTC_FUNCTION_CHANGED_VER_MAP; }
const versionMap &getTypeVersions() const override { return CUDA_RTC_TYPE_NAME_VER_MAP; }
const hipVersionMap &getHipTypeVersions() const override { return HIP_RTC_TYPE_NAME_VER_MAP; }
const string &getName() const override { return sCURTC; }
Expand Down
5 changes: 5 additions & 0 deletions src/CUDA2HIP_RTC_API_functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@ const std::map<llvm::StringRef, hipAPIversions> HIP_RTC_FUNCTION_VER_MAP {
{"hiprtcGetBitcodeSize", {HIP_5030, HIP_0, HIP_0 }},
};

const std::map<llvm::StringRef, cudaAPIChangedVersions> CUDA_RTC_FUNCTION_CHANGED_VER_MAP {
{"nvrtcCreateProgram", {CUDA_80}},
{"nvrtcCompileProgram", {CUDA_80}},
};

const std::map<unsigned int, llvm::StringRef> CUDA_RTC_API_SECTION_MAP {
{1, "RTC Data types"},
{2, "RTC API functions"},
Expand Down

0 comments on commit 0532349

Please sign in to comment.