diff --git a/docs/tables/CUDA_RTC_API_supported_by_HIP.md b/docs/tables/CUDA_RTC_API_supported_by_HIP.md index 500143ba..313137e2 100644 --- a/docs/tables/CUDA_RTC_API_supported_by_HIP.md +++ b/docs/tables/CUDA_RTC_API_supported_by_HIP.md @@ -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| | | | | diff --git a/src/CUDA2HIP.h b/src/CUDA2HIP.h index fe350997..97100d72 100644 --- a/src/CUDA2HIP.h +++ b/src/CUDA2HIP.h @@ -156,6 +156,7 @@ extern const std::map HIP_CUB_TYPE_NAME_VER_MAP extern const std::map HIP_CUB_FUNCTION_VER_MAP; extern const std::map HIP_RTC_TYPE_NAME_VER_MAP; extern const std::map HIP_RTC_FUNCTION_VER_MAP; +extern const std::map CUDA_RTC_FUNCTION_CHANGED_VER_MAP; extern const std::map HIP_SOLVER_TYPE_NAME_VER_MAP; extern const std::map HIP_SOLVER_FUNCTION_VER_MAP; diff --git a/src/CUDA2HIP_Doc.cpp b/src/CUDA2HIP_Doc.cpp index f7d5cd59..22020cb1 100644 --- a/src/CUDA2HIP_Doc.cpp +++ b/src/CUDA2HIP_Doc.cpp @@ -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; } diff --git a/src/CUDA2HIP_RTC_API_functions.cpp b/src/CUDA2HIP_RTC_API_functions.cpp index c02ba7f4..11a7884c 100644 --- a/src/CUDA2HIP_RTC_API_functions.cpp +++ b/src/CUDA2HIP_RTC_API_functions.cpp @@ -78,6 +78,11 @@ const std::map HIP_RTC_FUNCTION_VER_MAP { {"hiprtcGetBitcodeSize", {HIP_5030, HIP_0, HIP_0 }}, }; +const std::map CUDA_RTC_FUNCTION_CHANGED_VER_MAP { + {"nvrtcCreateProgram", {CUDA_80}}, + {"nvrtcCompileProgram", {CUDA_80}}, +}; + const std::map CUDA_RTC_API_SECTION_MAP { {1, "RTC Data types"}, {2, "RTC API functions"},