diff --git a/bin/hipify-perl b/bin/hipify-perl index 8a7a40b4..b0cdb68e 100755 --- a/bin/hipify-perl +++ b/bin/hipify-perl @@ -10022,6 +10022,8 @@ sub warnUnsupportedFunctions { "cudaErrorInvalidTextureBinding", "cudaErrorInvalidTexture", "cudaErrorInvalidSurface", + "cudaErrorInvalidResourceType", + "cudaErrorInvalidResourceConfiguration", "cudaErrorInvalidPc", "cudaErrorInvalidNormSetting", "cudaErrorInvalidHostPointer", @@ -10032,6 +10034,7 @@ sub warnUnsupportedFunctions { "cudaErrorIncompatibleDriverContext", "cudaErrorIllegalInstruction", "cudaErrorHardwareStackError", + "cudaErrorFunctionNotLoaded", "cudaErrorExternalDevice", "cudaErrorDuplicateVariableName", "cudaErrorDuplicateTextureName", @@ -11109,6 +11112,7 @@ sub warnUnsupportedFunctions { "CU_COREDUMP_SKIP_NONRELOCATED_ELF_IMAGES", "CU_COREDUMP_SKIP_LOCAL_MEMORY", "CU_COREDUMP_SKIP_GLOBAL_MEMORY", + "CU_COREDUMP_SKIP_CONSTBANK_MEMORY", "CU_COREDUMP_SKIP_ABORT", "CU_COREDUMP_PIPE", "CU_COREDUMP_MAX", diff --git a/docs/hipify-clang.rst b/docs/hipify-clang.rst index 5c877998..ef1544ca 100644 --- a/docs/hipify-clang.rst +++ b/docs/hipify-clang.rst @@ -184,8 +184,8 @@ Dependencies - `12.3.2 `_ :sup:`4` - **Latest stable config** - **Latest stable config** - * - `19.0.0 git `_ - - `12.5.1 `_ + * - `20.0.0 git `_ + - `12.6.0 `_ - ✅ - ✅ @@ -822,8 +822,8 @@ Tested configurations: - ``2019.16.11.38, 2022.17.10.5`` - ``3.30.0`` - ``3.12.5`` - * - ``19.0.0git`` - - ``7.0 - 12.5.1`` + * - ``20.0.0git`` + - ``7.0 - 12.6.0`` - ``8.0.5 - 9.4.0`` - ``2019.16.11.38, 2022.17.10.5`` - ``3.30.0`` diff --git a/docs/tables/CUDA_Driver_API_functions_supported_by_HIP.md b/docs/tables/CUDA_Driver_API_functions_supported_by_HIP.md index 2371b63c..a8ad10e3 100644 --- a/docs/tables/CUDA_Driver_API_functions_supported_by_HIP.md +++ b/docs/tables/CUDA_Driver_API_functions_supported_by_HIP.md @@ -324,6 +324,7 @@ |`CU_COREDUMP_MAX`|12.1| | | | | | | | | | |`CU_COREDUMP_PIPE`|12.1| | | | | | | | | | |`CU_COREDUMP_SKIP_ABORT`|12.5| | | | | | | | | | +|`CU_COREDUMP_SKIP_CONSTBANK_MEMORY`|12.6| | | | | | | | | | |`CU_COREDUMP_SKIP_GLOBAL_MEMORY`|12.5| | | | | | | | | | |`CU_COREDUMP_SKIP_LOCAL_MEMORY`|12.5| | | | | | | | | | |`CU_COREDUMP_SKIP_NONRELOCATED_ELF_IMAGES`|12.5| | | | | | | | | | diff --git a/docs/tables/CUDA_Runtime_API_functions_supported_by_HIP.md b/docs/tables/CUDA_Runtime_API_functions_supported_by_HIP.md index 0e33eb01..f031411d 100644 --- a/docs/tables/CUDA_Runtime_API_functions_supported_by_HIP.md +++ b/docs/tables/CUDA_Runtime_API_functions_supported_by_HIP.md @@ -1033,6 +1033,7 @@ |`cudaErrorECCUncorrectable`| | | | |`hipErrorECCNotCorrectable`|1.6.0| | | | | |`cudaErrorExternalDevice`| | | | | | | | | | | |`cudaErrorFileNotFound`|10.1| | | |`hipErrorFileNotFound`|1.6.0| | | | | +|`cudaErrorFunctionNotLoaded`|12.6| | | | | | | | | | |`cudaErrorGraphExecUpdateFailure`|10.2| | | |`hipErrorGraphExecUpdateFailure`|5.0.0| | | | | |`cudaErrorHardwareStackError`| | | | | | | | | | | |`cudaErrorHostMemoryAlreadyRegistered`| | | | |`hipErrorHostMemoryAlreadyRegistered`|1.6.0| | | | | @@ -1059,7 +1060,9 @@ |`cudaErrorInvalidPc`| | | | | | | | | | | |`cudaErrorInvalidPitchValue`| | | | |`hipErrorInvalidPitchValue`|4.2.0| | | | | |`cudaErrorInvalidPtx`| | | | |`hipErrorInvalidKernelFile`|1.6.0| | | | | +|`cudaErrorInvalidResourceConfiguration`|12.6| | | | | | | | | | |`cudaErrorInvalidResourceHandle`| | | | |`hipErrorInvalidHandle`|1.6.0| | | | | +|`cudaErrorInvalidResourceType`|12.6| | | | | | | | | | |`cudaErrorInvalidSource`|10.1| | | |`hipErrorInvalidSource`|1.6.0| | | | | |`cudaErrorInvalidSurface`| | | | | | | | | | | |`cudaErrorInvalidSymbol`| | | | |`hipErrorInvalidSymbol`|1.6.0| | | | | diff --git a/src/CUDA2HIP_Driver_API_types.cpp b/src/CUDA2HIP_Driver_API_types.cpp index 503df0dc..5a84db44 100644 --- a/src/CUDA2HIP_Driver_API_types.cpp +++ b/src/CUDA2HIP_Driver_API_types.cpp @@ -1873,11 +1873,11 @@ const std::map CUDA_DRIVER_TYPE_NAME_MAP { {"CUDA_ERROR_EXTERNAL_DEVICE", {"hipErrorExternalDevice", "", CONV_NUMERIC_LITERAL, API_DRIVER, SEC::DATA_TYPES, HIP_UNSUPPORTED}}, // 911 // cudaErrorInvalidClusterSize {"CUDA_ERROR_INVALID_CLUSTER_SIZE", {"hipErrorInvalidClusterSize", "", CONV_NUMERIC_LITERAL, API_DRIVER, SEC::DATA_TYPES, HIP_UNSUPPORTED}}, // 912 - // + // cudaErrorFunctionNotLoaded {"CUDA_ERROR_FUNCTION_NOT_LOADED", {"hipErrorFunctionNotLoaded", "", CONV_NUMERIC_LITERAL, API_DRIVER, SEC::DATA_TYPES, HIP_UNSUPPORTED}}, // 913 - // + // cudaErrorInvalidResourceType {"CUDA_ERROR_INVALID_RESOURCE_TYPE", {"hipErrorInvalidResourceType", "", CONV_NUMERIC_LITERAL, API_DRIVER, SEC::DATA_TYPES, HIP_UNSUPPORTED}}, // 914 - // + // cudaErrorInvalidResourceConfiguration {"CUDA_ERROR_INVALID_RESOURCE_CONFIGURATION", {"hipErrorInvalidResourceConfiguration", "", CONV_NUMERIC_LITERAL, API_DRIVER, SEC::DATA_TYPES, HIP_UNSUPPORTED}}, // 915 // cudaErrorUnknown {"CUDA_ERROR_UNKNOWN", {"hipErrorUnknown", "", CONV_NUMERIC_LITERAL, API_DRIVER, SEC::DATA_TYPES}}, // 999 @@ -2665,6 +2665,8 @@ const std::map CUDA_DRIVER_TYPE_NAME_MAP { // {"CU_COREDUMP_SKIP_ABORT", {"HIP_COREDUMP_SKIP_ABORT", "", CONV_NUMERIC_LITERAL, API_DRIVER, SEC::DATA_TYPES, HIP_UNSUPPORTED}}, // + {"CU_COREDUMP_SKIP_CONSTBANK_MEMORY", {"HIP_COREDUMP_SKIP_CONSTBANK_MEMORY", "", CONV_NUMERIC_LITERAL, API_DRIVER, SEC::DATA_TYPES, HIP_UNSUPPORTED}}, + // {"CU_COREDUMP_LIGHTWEIGHT_FLAGS", {"HIP_COREDUMP_LIGHTWEIGHT_FLAGS", "", CONV_NUMERIC_LITERAL, API_DRIVER, SEC::DATA_TYPES, HIP_UNSUPPORTED}}, // @@ -3851,6 +3853,7 @@ const std::map CUDA_DRIVER_TYPE_NAME_VER_MAP { {"CUdevSmResourceSplit_flags", {CUDA_125, CUDA_0, CUDA_0 }}, {"CU_DEV_SM_RESOURCE_SPLIT_IGNORE_SM_COSCHEDULING", {CUDA_125, CUDA_0, CUDA_0 }}, {"CU_DEV_SM_RESOURCE_SPLIT_MAX_POTENTIAL_CLUSTER_SIZE", {CUDA_125, CUDA_0, CUDA_0 }}, + {"CU_COREDUMP_SKIP_CONSTBANK_MEMORY", {CUDA_126, CUDA_0, CUDA_0 }}, }; const std::map HIP_DRIVER_TYPE_NAME_VER_MAP { diff --git a/src/CUDA2HIP_Runtime_API_types.cpp b/src/CUDA2HIP_Runtime_API_types.cpp index 034d4fc8..f8a86bdd 100644 --- a/src/CUDA2HIP_Runtime_API_types.cpp +++ b/src/CUDA2HIP_Runtime_API_types.cpp @@ -1119,6 +1119,12 @@ const std::map CUDA_RUNTIME_TYPE_NAME_MAP { {"cudaErrorExternalDevice", {"hipErrorExternalDevice", "", CONV_NUMERIC_LITERAL, API_RUNTIME, SEC::DATA_TYPES, HIP_UNSUPPORTED}}, // 911 // CUDA_ERROR_INVALID_CLUSTER_SIZE {"cudaErrorInvalidClusterSize", {"hipErrorInvalidClusterSize", "", CONV_NUMERIC_LITERAL, API_RUNTIME, SEC::DATA_TYPES, HIP_UNSUPPORTED}}, // 912 + // CUDA_ERROR_FUNCTION_NOT_LOADED + {"cudaErrorFunctionNotLoaded", {"hipErrorFunctionNotLoaded", "", CONV_NUMERIC_LITERAL, API_RUNTIME, SEC::DATA_TYPES, HIP_UNSUPPORTED}}, // 913 + // CUDA_ERROR_INVALID_RESOURCE_TYPE + {"cudaErrorInvalidResourceType", {"hipErrorInvalidResourceType", "", CONV_NUMERIC_LITERAL, API_RUNTIME, SEC::DATA_TYPES, HIP_UNSUPPORTED}}, // 914 + // CUDA_ERROR_INVALID_RESOURCE_CONFIGURATION + {"cudaErrorInvalidResourceConfiguration", {"hipErrorInvalidResourceConfiguration", "", CONV_NUMERIC_LITERAL, API_RUNTIME, SEC::DATA_TYPES, HIP_UNSUPPORTED}}, // 915 // CUDA_ERROR_UNKNOWN {"cudaErrorUnknown", {"hipErrorUnknown", "", CONV_NUMERIC_LITERAL, API_RUNTIME, SEC::DATA_TYPES}}, // 999 // Deprecated since CUDA 4.1 @@ -2827,6 +2833,9 @@ const std::map CUDA_RUNTIME_TYPE_NAME_VER_MAP {"cudaDevAttrD3D12CigSupported", {CUDA_125, CUDA_0, CUDA_0 }}, {"cudaLaunchAttributePreferredSharedMemoryCarveout", {CUDA_125, CUDA_0, CUDA_0 }}, {"cudaKernelNodeAttributePreferredSharedMemoryCarveout", {CUDA_125, CUDA_0, CUDA_0 }}, + {"cudaErrorFunctionNotLoaded", {CUDA_126, CUDA_0, CUDA_0 }}, + {"cudaErrorInvalidResourceType", {CUDA_126, CUDA_0, CUDA_0 }}, + {"cudaErrorInvalidResourceConfiguration", {CUDA_126, CUDA_0, CUDA_0 }}, }; const std::map HIP_RUNTIME_TYPE_NAME_VER_MAP { diff --git a/src/Statistics.cpp b/src/Statistics.cpp index bb0ed5de..91e01fb3 100644 --- a/src/Statistics.cpp +++ b/src/Statistics.cpp @@ -490,6 +490,7 @@ std::string Statistics::getCudaVersion(const cudaVersions &ver) { case CUDA_123: return "12.3"; case CUDA_124: return "12.4"; case CUDA_125: return "12.5"; + case CUDA_126: return "12.6"; case CUDNN_10: return "1.0.0"; case CUDNN_20: return "2.0.0"; case CUDNN_30: return "3.0.0"; diff --git a/src/Statistics.h b/src/Statistics.h index 82f41450..3095d47b 100644 --- a/src/Statistics.h +++ b/src/Statistics.h @@ -243,7 +243,8 @@ enum cudaVersions { CUDA_123 = 12030, CUDA_124 = 12040, CUDA_125 = 12050, - CUDA_LATEST = CUDA_125, + CUDA_126 = 12060, + CUDA_LATEST = CUDA_126, CUDNN_10 = 100, CUDNN_20 = 200, CUDNN_30 = 300,