Skip to content

Commit

Permalink
merge promotion/amd-mainline/2023.07.07 into amd-mainline
Browse files Browse the repository at this point in the history
Change-Id: I6265484eeb926666a6915e620275c00679afcdcd
  • Loading branch information
searlmc1 committed Jul 7, 2023
2 parents 0789771 + 5a349b0 commit d8f95df
Show file tree
Hide file tree
Showing 19 changed files with 633 additions and 224 deletions.
69 changes: 61 additions & 8 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,23 @@ cmake_minimum_required(VERSION 3.16.8)
project(hipify-clang)

include(GNUInstallDirs)
find_package(LLVM REQUIRED CONFIG PATHS ${CMAKE_PREFIX_PATH})

message(STATUS "Found LLVM ${LLVM_PACKAGE_VERSION}:")
message(STATUS " - CMake module path: ${LLVM_CMAKE_DIR}")
message(STATUS " - Include path : ${LLVM_INCLUDE_DIRS}")
message(STATUS " - Binary path : ${LLVM_TOOLS_BINARY_DIR}")
option(HIPIFY_INCLUDE_IN_HIP_SDK "Include HIPIFY in HIP SDK" OFF)
if(HIPIFY_INCLUDE_IN_HIP_SDK)
if(NOT WIN32)
message(FATAL_ERROR "HIPIFY_INCLUDE_IN_HIP_SDK is only supported on Windows")
endif()
if(CMAKE_GENERATOR MATCHES "Visual Studio")
message(FATAL_ERROR "HIPIFY_INCLUDE_IN_HIP_SDK is not targeting Visual Studio")
endif()
else()
find_package(LLVM REQUIRED CONFIG PATHS ${CMAKE_PREFIX_PATH})

message(STATUS "Found LLVM ${LLVM_PACKAGE_VERSION}:")
message(STATUS " - CMake module path: ${LLVM_CMAKE_DIR}")
message(STATUS " - Include path : ${LLVM_INCLUDE_DIRS}")
message(STATUS " - Binary path : ${LLVM_TOOLS_BINARY_DIR}")
endif()

option(HIPIFY_CLANG_TESTS "Build HIPIFY tests, if lit is installed" OFF)
option(HIPIFY_CLANG_TESTS_ONLY "Build HIPIFY tests only, if lit is installed and hipify-clang binary is already produced" OFF)
Expand All @@ -31,8 +42,31 @@ file(GLOB_RECURSE HIPIFY_HEADERS src/*.h)
add_llvm_executable(hipify-clang ${HIPIFY_SOURCES} ${HIPIFY_HEADERS})
target_link_directories(hipify-clang PRIVATE ${LLVM_LIBRARY_DIRS})

set(CMAKE_CXX_COMPILER ${LLVM_TOOLS_BINARY_DIR}/clang++)
set(CMAKE_C_COMPILER ${LLVM_TOOLS_BINARY_DIR}/clang)
if(HIPIFY_INCLUDE_IN_HIP_SDK)
if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
message(FATAL_ERROR "In order to include HIPIFY in HIP SDK, HIPIFY needs to be built with LLVM_EXTERNAL_PROJECTS")
endif()

# Need to add clang include directories explicitly if
# building as part of llvm.
if(LLVM_EXTERNAL_CLANG_SOURCE_DIR)
target_include_directories(hipify-clang
PRIVATE
${LLVM_BINARY_DIR}/tools/clang/include
${LLVM_EXTERNAL_CLANG_SOURCE_DIR}/include)
endif()
# Need to add lld include directories explicitly if
# building as part of llvm.
if(LLVM_EXTERNAL_LLD_SOURCE_DIR)
target_include_directories(hipify-clang
PRIVATE
${LLVM_BINARY_DIR}/tools/lld/include
${LLVM_EXTERNAL_LLD_SOURCE_DIR}/include)
endif()
else()
set(CMAKE_CXX_COMPILER ${LLVM_TOOLS_BINARY_DIR}/clang++)
set(CMAKE_C_COMPILER ${LLVM_TOOLS_BINARY_DIR}/clang)
endif()

# Link against LLVM and CLANG libraries
target_link_libraries(hipify-clang PRIVATE
Expand Down Expand Up @@ -129,11 +163,30 @@ set(HIPIFY_BIN_INSTALL_PATH "${CMAKE_INSTALL_PREFIX}/bin")
install(TARGETS hipify-clang DESTINATION bin)
# install bin directory in CMAKE_INSTALL_PREFIX path
install(
DIRECTORY ${CMAKE_SOURCE_DIR}/bin
DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/bin
DESTINATION .
USE_SOURCE_PERMISSIONS
PATTERN "hipify-perl"
PATTERN "*.sh")

# Headers are already included in HIP SDK, so skip those if including
# HIPIFY in HIP SDK.
if(NOT HIPIFY_INCLUDE_IN_HIP_SDK)
# install all folders under clang/version/ in CMAKE_INSTALL_PREFIX path
install(
DIRECTORY ${LLVM_DIR}/../../clang/${LIB_CLANG_RES}/
DESTINATION .
COMPONENT clang-resource-headers
FILES_MATCHING
PATTERN "*.h"
PATTERN "*.modulemap"
PATTERN "algorithm"
PATTERN "complex"
PATTERN "new"
PATTERN "ppc_wrappers" EXCLUDE
PATTERN "openmp_wrappers" EXCLUDE)
endif()

# install all folders under clang/version/ in CMAKE_INSTALL_PREFIX path
install(
DIRECTORY ${LLVM_DIR}/../../clang/${LLVM_VERSION_MAJOR}.${LLVM_VERSION_MINOR}.${LLVM_VERSION_PATCH}/
Expand Down
99 changes: 71 additions & 28 deletions bin/hipify-perl

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/.sphinx/requirements.in
Original file line number Diff line number Diff line change
@@ -1 +1 @@
rocm-docs-core==0.16.0
rocm-docs-core==0.18.4
8 changes: 2 additions & 6 deletions docs/.sphinx/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ jinja2==3.1.2
# via
# myst-parser
# sphinx
linkify-it-py==1.0.3
# via myst-parser
markdown-it-py==2.2.0
# via
# mdit-py-plugins
Expand All @@ -62,7 +60,7 @@ mdit-py-plugins==0.3.5
# via myst-parser
mdurl==0.1.2
# via markdown-it-py
myst-parser[linkify]==1.0.0
myst-parser==1.0.0
# via rocm-docs-core
packaging==23.0
# via
Expand Down Expand Up @@ -94,7 +92,7 @@ requests==2.28.2
# via
# pygithub
# sphinx
rocm-docs-core==0.16.0
rocm-docs-core==0.18.4
# via -r requirements.in
smmap==5.0.0
# via gitdb
Expand Down Expand Up @@ -137,8 +135,6 @@ sphinxcontrib-serializinghtml==1.1.5
# via sphinx
typing-extensions==4.5.0
# via pydata-sphinx-theme
uc-micro-py==1.0.1
# via linkify-it-py
urllib3==1.26.15
# via requests
wrapt==1.15.0
Expand Down
62 changes: 52 additions & 10 deletions docs/tables/CUDA_Driver_API_functions_supported_by_HIP.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,14 @@
|`CUDA_ARRAY_SPARSE_PROPERTIES_st`|11.1| | | | | | | |
|`CUDA_ARRAY_SPARSE_PROPERTIES_v1`|11.3| | | | | | | |
|`CUDA_BATCH_MEM_OP_NODE_PARAMS`|11.7| | | | | | | |
|`CUDA_BATCH_MEM_OP_NODE_PARAMS_st`|11.7| | | | | | | |
|`CUDA_BATCH_MEM_OP_NODE_PARAMS_st`|11.7| |12.2| | | | | |
|`CUDA_BATCH_MEM_OP_NODE_PARAMS_v1`|12.2| | | | | | | |
|`CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st`|12.2| | | | | | | |
|`CUDA_BATCH_MEM_OP_NODE_PARAMS_v2`|12.2| | | | | | | |
|`CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st`|12.2| | | | | | | |
|`CUDA_CB`| | | | | | | | |
|`CUDA_CHILD_GRAPH_NODE_PARAMS`|12.2| | | | | | | |
|`CUDA_CHILD_GRAPH_NODE_PARAMS_st`|12.2| | | | | | | |
|`CUDA_COOPERATIVE_LAUNCH_MULTI_DEVICE_NO_POST_LAUNCH_SYNC`|9.0| | |`hipCooperativeLaunchMultiDeviceNoPostSync`|3.2.0| | | |
|`CUDA_COOPERATIVE_LAUNCH_MULTI_DEVICE_NO_PRE_LAUNCH_SYNC`|9.0| | |`hipCooperativeLaunchMultiDeviceNoPreSync`|3.2.0| | | |
|`CUDA_ERROR_ALREADY_ACQUIRED`| | | |`hipErrorAlreadyAcquired`|1.6.0| | | |
Expand Down Expand Up @@ -124,6 +130,10 @@
|`CUDA_ERROR_UNSUPPORTED_EXEC_AFFINITY`|11.4| | | | | | | |
|`CUDA_ERROR_UNSUPPORTED_LIMIT`| | | |`hipErrorUnsupportedLimit`|1.6.0| | | |
|`CUDA_ERROR_UNSUPPORTED_PTX_VERSION`|11.1| | | | | | | |
|`CUDA_EVENT_RECORD_NODE_PARAMS`|12.2| | | | | | | |
|`CUDA_EVENT_RECORD_NODE_PARAMS_st`|12.2| | | | | | | |
|`CUDA_EVENT_WAIT_NODE_PARAMS`|12.2| | | | | | | |
|`CUDA_EVENT_WAIT_NODE_PARAMS_st`|12.2| | | | | | | |
|`CUDA_EXTERNAL_MEMORY_BUFFER_DESC`|10.0| | |`hipExternalMemoryBufferDesc`|4.3.0| | | |
|`CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st`|10.0| | |`hipExternalMemoryBufferDesc_st`|4.3.0| | | |
|`CUDA_EXTERNAL_MEMORY_BUFFER_DESC_v1`|11.3| | |`hipExternalMemoryBufferDesc`|4.3.0| | | |
Expand All @@ -148,14 +158,18 @@
|`CUDA_EXT_SEM_SIGNAL_NODE_PARAMS`|11.2| | | | | | | |
|`CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st`|11.2| | | | | | | |
|`CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v1`|11.3| | | | | | | |
|`CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2`|12.2| | | | | | | |
|`CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st`|12.2| | | | | | | |
|`CUDA_EXT_SEM_WAIT_NODE_PARAMS`|11.2| | | | | | | |
|`CUDA_EXT_SEM_WAIT_NODE_PARAMS_st`|11.2| | | | | | | |
|`CUDA_EXT_SEM_WAIT_NODE_PARAMS_v1`|11.3| | | | | | | |
|`CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2`|12.2| | | | | | | |
|`CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st`|12.2| | | | | | | |
|`CUDA_GRAPH_INSTANTIATE_ERROR`|12.0| | | | | | | |
|`CUDA_GRAPH_INSTANTIATE_FLAG_AUTO_FREE_ON_LAUNCH`|11.4| | |`hipGraphInstantiateFlagAutoFreeOnLaunch`|5.2.0| | | |
|`CUDA_GRAPH_INSTANTIATE_FLAG_DEVICE_LAUNCH`|12.0| | |`hipGraphInstantiateFlagDeviceLaunch`|5.6.0| | |5.6.0|
|`CUDA_GRAPH_INSTANTIATE_FLAG_UPLOAD`|12.0| | |`hipGraphInstantiateFlagUpload`|5.6.0| | |5.6.0|
|`CUDA_GRAPH_INSTANTIATE_FLAG_USE_NODE_PRIORITY`|11.7| | |`hipGraphInstantiateFlagUseNodePriority`|5.6.0| | |5.6.0|
|`CUDA_GRAPH_INSTANTIATE_FLAG_DEVICE_LAUNCH`|12.0| | |`hipGraphInstantiateFlagDeviceLaunch`|5.6.0| | | |
|`CUDA_GRAPH_INSTANTIATE_FLAG_UPLOAD`|12.0| | |`hipGraphInstantiateFlagUpload`|5.6.0| | | |
|`CUDA_GRAPH_INSTANTIATE_FLAG_USE_NODE_PRIORITY`|11.7| | |`hipGraphInstantiateFlagUseNodePriority`|5.6.0| | | |
|`CUDA_GRAPH_INSTANTIATE_INVALID_STRUCTURE`|12.0| | | | | | | |
|`CUDA_GRAPH_INSTANTIATE_MULTIPLE_CTXS_NOT_SUPPORTED`|12.0| | | | | | | |
|`CUDA_GRAPH_INSTANTIATE_NODE_OPERATION_NOT_SUPPORTED`|12.0| | | | | | | |
Expand All @@ -165,11 +179,15 @@
|`CUDA_HOST_NODE_PARAMS`|10.0| | |`hipHostNodeParams`|4.3.0| | | |
|`CUDA_HOST_NODE_PARAMS_st`|10.0| | |`hipHostNodeParams`|4.3.0| | | |
|`CUDA_HOST_NODE_PARAMS_v1`|11.3| | |`hipHostNodeParams`|4.3.0| | | |
|`CUDA_HOST_NODE_PARAMS_v2`|12.2| | | | | | | |
|`CUDA_HOST_NODE_PARAMS_v2_st`|12.2| | | | | | | |
|`CUDA_KERNEL_NODE_PARAMS`|10.0| | |`hipKernelNodeParams`|4.3.0| | | |
|`CUDA_KERNEL_NODE_PARAMS_st`|10.0| | |`hipKernelNodeParams`|4.3.0| | | |
|`CUDA_KERNEL_NODE_PARAMS_v1`|11.3| | |`hipKernelNodeParams`|4.3.0| | | |
|`CUDA_KERNEL_NODE_PARAMS_v2`|12.0| | | | | | | |
|`CUDA_KERNEL_NODE_PARAMS_v2_st`|12.0| | | | | | | |
|`CUDA_KERNEL_NODE_PARAMS_v3`|12.2| | | | | | | |
|`CUDA_KERNEL_NODE_PARAMS_v3_st`|12.2| | | | | | | |
|`CUDA_LAUNCH_PARAMS`|9.0| | |`hipFunctionLaunchParams`|5.5.0| | | |
|`CUDA_LAUNCH_PARAMS_st`|9.0| | |`hipFunctionLaunchParams_t`|5.5.0| | | |
|`CUDA_LAUNCH_PARAMS_v1`|11.3| | |`hipFunctionLaunchParams`|5.5.0| | | |
Expand All @@ -186,11 +204,21 @@
|`CUDA_MEMCPY3D_v1`| | | |`HIP_MEMCPY3D`|3.2.0| | | |
|`CUDA_MEMCPY3D_v1_st`| | | |`HIP_MEMCPY3D`|3.2.0| | | |
|`CUDA_MEMCPY3D_v2`|11.3| | |`HIP_MEMCPY3D`|3.2.0| | | |
|`CUDA_MEMCPY_NODE_PARAMS`|12.2| | | | | | | |
|`CUDA_MEMCPY_NODE_PARAMS_st`|12.2| | | | | | | |
|`CUDA_MEMSET_NODE_PARAMS`|10.0| | |`hipMemsetParams`|4.3.0| | | |
|`CUDA_MEMSET_NODE_PARAMS_st`|10.0| | |`hipMemsetParams`|4.3.0| | | |
|`CUDA_MEMSET_NODE_PARAMS_v1`|11.3| | |`hipMemsetParams`|4.3.0| | | |
|`CUDA_MEMSET_NODE_PARAMS_v2`|12.2| | | | | | | |
|`CUDA_MEMSET_NODE_PARAMS_v2_st`|12.2| | | | | | | |
|`CUDA_MEM_ALLOC_NODE_PARAMS`|11.4| | |`hipMemAllocNodeParams`|5.5.0| | | |
|`CUDA_MEM_ALLOC_NODE_PARAMS_st`|11.4| | |`hipMemAllocNodeParams`|5.5.0| | | |
|`CUDA_MEM_ALLOC_NODE_PARAMS_st`|11.4| |12.2|`hipMemAllocNodeParams`|5.5.0| | | |
|`CUDA_MEM_ALLOC_NODE_PARAMS_v1`|12.2| | |`hipMemAllocNodeParams`|5.5.0| | | |
|`CUDA_MEM_ALLOC_NODE_PARAMS_v1_st`|12.2| | |`hipMemAllocNodeParams`|5.5.0| | | |
|`CUDA_MEM_ALLOC_NODE_PARAMS_v2`|12.2| | | | | | | |
|`CUDA_MEM_ALLOC_NODE_PARAMS_v2_st`|12.2| | | | | | | |
|`CUDA_MEM_FREE_NODE_PARAMS`|12.2| | | | | | | |
|`CUDA_MEM_FREE_NODE_PARAMS_st`|12.2| | | | | | | |
|`CUDA_NVSCISYNC_ATTR_SIGNAL`|10.2| | | | | | | |
|`CUDA_NVSCISYNC_ATTR_WAIT`|10.2| | | | | | | |
|`CUDA_POINTER_ATTRIBUTE_ACCESS_FLAGS`|11.1| | | | | | | |
Expand Down Expand Up @@ -346,6 +374,7 @@
|`CU_DEVICE_ATTRIBUTE_HANDLE_TYPE_WIN32_HANDLE_SUPPORTED`|10.2| | | | | | | |
|`CU_DEVICE_ATTRIBUTE_HANDLE_TYPE_WIN32_KMT_HANDLE_SUPPORTED`|10.2| | | | | | | |
|`CU_DEVICE_ATTRIBUTE_HOST_NATIVE_ATOMIC_SUPPORTED`|8.0| | |`hipDeviceAttributeHostNativeAtomicSupported`|4.3.0| | | |
|`CU_DEVICE_ATTRIBUTE_HOST_NUMA_ID`|12.2| | | | | | | |
|`CU_DEVICE_ATTRIBUTE_HOST_REGISTER_SUPPORTED`|9.2| | | | | | | |
|`CU_DEVICE_ATTRIBUTE_INTEGRATED`| | | |`hipDeviceAttributeIntegrated`|1.9.0| | | |
|`CU_DEVICE_ATTRIBUTE_IPC_EVENT_SUPPORTED`|12.0| | | | | | | |
Expand Down Expand Up @@ -422,6 +451,8 @@
|`CU_DEVICE_ATTRIBUTE_MULTIPROCESSOR_COUNT`| | | |`hipDeviceAttributeMultiprocessorCount`|1.6.0| | | |
|`CU_DEVICE_ATTRIBUTE_MULTI_GPU_BOARD`| | | |`hipDeviceAttributeIsMultiGpuBoard`|1.6.0| | | |
|`CU_DEVICE_ATTRIBUTE_MULTI_GPU_BOARD_GROUP_ID`| | | |`hipDeviceAttributeMultiGpuBoardGroupId`|4.3.0| | | |
|`CU_DEVICE_ATTRIBUTE_NUMA_CONFIG`|12.2| | | | | | | |
|`CU_DEVICE_ATTRIBUTE_NUMA_ID`|12.2| | | | | | | |
|`CU_DEVICE_ATTRIBUTE_PAGEABLE_MEMORY_ACCESS`|8.0| | |`hipDeviceAttributePageableMemoryAccess`|3.10.0| | | |
|`CU_DEVICE_ATTRIBUTE_PAGEABLE_MEMORY_ACCESS_USES_HOST_PAGE_TABLES`|9.2| | |`hipDeviceAttributePageableMemoryAccessUsesHostPageTables`|3.10.0| | | |
|`CU_DEVICE_ATTRIBUTE_PCI_BUS_ID`| | | |`hipDeviceAttributePciBusId`|1.6.0| | | |
Expand Down Expand Up @@ -743,7 +774,7 @@
|`CU_MEMHOSTREGISTER_DEVICEMAP`| | | |`hipHostRegisterMapped`|1.6.0| | | |
|`CU_MEMHOSTREGISTER_IOMEMORY`|7.5| | |`hipHostRegisterIoMemory`|1.6.0| | | |
|`CU_MEMHOSTREGISTER_PORTABLE`| | | |`hipHostRegisterPortable`|1.6.0| | | |
|`CU_MEMHOSTREGISTER_READ_ONLY`|11.1| | |`hipHostRegisterReadOnly`|5.6.0| | |5.6.0|
|`CU_MEMHOSTREGISTER_READ_ONLY`|11.1| | |`hipHostRegisterReadOnly`|5.6.0| | | |
|`CU_MEMORYTYPE_ARRAY`| | | |`hipMemoryTypeArray`|1.7.0| | | |
|`CU_MEMORYTYPE_DEVICE`| | | |`hipMemoryTypeDevice`|1.6.0| | | |
|`CU_MEMORYTYPE_HOST`| | | |`hipMemoryTypeHost`|1.6.0| | | |
Expand Down Expand Up @@ -782,13 +813,20 @@
|`CU_MEM_HANDLE_TYPE_WIN32`|10.2| | |`hipMemHandleTypeWin32`|5.2.0| | | |
|`CU_MEM_HANDLE_TYPE_WIN32_KMT`|10.2| | |`hipMemHandleTypeWin32Kmt`|5.2.0| | | |
|`CU_MEM_LOCATION_TYPE_DEVICE`|10.2| | |`hipMemLocationTypeDevice`|5.2.0| | | |
|`CU_MEM_LOCATION_TYPE_HOST`|12.2| | | | | | | |
|`CU_MEM_LOCATION_TYPE_HOST_NUMA`|12.2| | | | | | | |
|`CU_MEM_LOCATION_TYPE_HOST_NUMA_CURRENT`|12.2| | | | | | | |
|`CU_MEM_LOCATION_TYPE_INVALID`|10.2| | |`hipMemLocationTypeInvalid`|5.2.0| | | |
|`CU_MEM_LOCATION_TYPE_MAX`|10.2| | | | | | | |
|`CU_MEM_OPERATION_TYPE_MAP`|11.1| | |`hipMemOperationTypeMap`|5.2.0| | | |
|`CU_MEM_OPERATION_TYPE_UNMAP`|11.1| | |`hipMemOperationTypeUnmap`|5.2.0| | | |
|`CU_MEM_RANGE_ATTRIBUTE_ACCESSED_BY`|8.0| | |`hipMemRangeAttributeAccessedBy`|3.7.0| | | |
|`CU_MEM_RANGE_ATTRIBUTE_LAST_PREFETCH_LOCATION`|8.0| | |`hipMemRangeAttributeLastPrefetchLocation`|3.7.0| | | |
|`CU_MEM_RANGE_ATTRIBUTE_LAST_PREFETCH_LOCATION_ID`|12.2| | | | | | | |
|`CU_MEM_RANGE_ATTRIBUTE_LAST_PREFETCH_LOCATION_TYPE`|12.2| | | | | | | |
|`CU_MEM_RANGE_ATTRIBUTE_PREFERRED_LOCATION`|8.0| | |`hipMemRangeAttributePreferredLocation`|3.7.0| | | |
|`CU_MEM_RANGE_ATTRIBUTE_PREFERRED_LOCATION_ID`|12.2| | | | | | | |
|`CU_MEM_RANGE_ATTRIBUTE_PREFERRED_LOCATION_TYPE`|12.2| | | | | | | |
|`CU_MEM_RANGE_ATTRIBUTE_READ_MOSTLY`|8.0| | |`hipMemRangeAttributeReadMostly`|3.7.0| | | |
|`CU_MEM_RANGE_HANDLE_TYPE_DMA_BUF_FD`|11.7| | | | | | | |
|`CU_MEM_RANGE_HANDLE_TYPE_MAX`|11.7| | | | | | | |
Expand Down Expand Up @@ -1013,6 +1051,8 @@
|`CUd3d9register_flags`| | | | | | | | |
|`CUd3d9register_flags_enum`| | | | | | | | |
|`CUdevice`| | | |`hipDevice_t`|1.6.0| | | |
|`CUdeviceNumaConfig`|12.2| | | | | | | |
|`CUdeviceNumaConfig_enum`|12.2| | | | | | | |
|`CUdevice_P2PAttribute`|8.0| | |`hipDeviceP2PAttr`|3.8.0| | | |
|`CUdevice_P2PAttribute_enum`|8.0| | |`hipDeviceP2PAttr`|3.8.0| | | |
|`CUdevice_attribute`| | | |`hipDeviceAttribute_t`|1.6.0| | | |
Expand Down Expand Up @@ -1093,6 +1133,8 @@
|`CUgraphMem_attribute`|11.4| | |`hipGraphMemAttributeType`|5.3.0| | | |
|`CUgraphMem_attribute_enum`|11.4| | |`hipGraphMemAttributeType`|5.3.0| | | |
|`CUgraphNode`|10.0| | |`hipGraphNode_t`|4.3.0| | | |
|`CUgraphNodeParams`|12.2| | | | | | | |
|`CUgraphNodeParams_st`|12.2| | | | | | | |
|`CUgraphNodeType`|10.0| | |`hipGraphNodeType`|4.3.0| | | |
|`CUgraphNodeType_enum`|10.0| | |`hipGraphNodeType`|4.3.0| | | |
|`CUgraphNode_st`|10.0| | |`hipGraphNode`|4.3.0| | | |
Expand Down Expand Up @@ -1447,13 +1489,13 @@
|:--|:-:|:-:|:-:|:--|:-:|:-:|:-:|:-:|
|`cuArray3DCreate`| | | |`hipArray3DCreate`|1.7.1| | | |
|`cuArray3DCreate_v2`| | | |`hipArray3DCreate`|1.7.1| | | |
|`cuArray3DGetDescriptor`| | | |`hipArray3DGetDescriptor`|5.6.0| | |5.6.0|
|`cuArray3DGetDescriptor_v2`| | | |`hipArray3DGetDescriptor`|5.6.0| | |5.6.0|
|`cuArray3DGetDescriptor`| | | |`hipArray3DGetDescriptor`|5.6.0| | | |
|`cuArray3DGetDescriptor_v2`| | | |`hipArray3DGetDescriptor`|5.6.0| | | |
|`cuArrayCreate`| | | |`hipArrayCreate`|1.9.0| | | |
|`cuArrayCreate_v2`| | | |`hipArrayCreate`|1.9.0| | | |
|`cuArrayDestroy`| | | |`hipArrayDestroy`|4.2.0| | | |
|`cuArrayGetDescriptor`| | | |`hipArrayGetDescriptor`|5.6.0| | |5.6.0|
|`cuArrayGetDescriptor_v2`| | | |`hipArrayGetDescriptor`|5.6.0| | |5.6.0|
|`cuArrayGetDescriptor`| | | |`hipArrayGetDescriptor`|5.6.0| | | |
|`cuArrayGetDescriptor_v2`| | | |`hipArrayGetDescriptor`|5.6.0| | | |
|`cuArrayGetMemoryRequirements`|11.6| | | | | | | |
|`cuArrayGetPlane`|11.2| | | | | | | |
|`cuArrayGetSparseProperties`|11.1| | | | | | | |
Expand Down
10 changes: 5 additions & 5 deletions docs/tables/CUDA_Runtime_API_functions_supported_by_HIP.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@

|**CUDA**|**A**|**D**|**R**|**HIP**|**A**|**D**|**R**|**E**|
|:--|:-:|:-:|:-:|:--|:-:|:-:|:-:|:-:|
|`cudaArrayGetInfo`| | | |`hipArrayGetInfo`|5.6.0| | |5.6.0|
|`cudaArrayGetInfo`| | | |`hipArrayGetInfo`|5.6.0| | | |
|`cudaArrayGetMemoryRequirements`|11.6| | | | | | | |
|`cudaArrayGetPlane`|11.2| | | | | | | |
|`cudaArrayGetSparseProperties`|11.1| | | | | | | |
Expand Down Expand Up @@ -1109,9 +1109,9 @@
|`cudaGraphExec_t`|10.0| | |`hipGraphExec_t`|4.3.0| | | |
|`cudaGraphInstantiateError`|12.0| | | | | | | |
|`cudaGraphInstantiateFlagAutoFreeOnLaunch`|11.4| | |`hipGraphInstantiateFlagAutoFreeOnLaunch`|5.2.0| | | |
|`cudaGraphInstantiateFlagDeviceLaunch`|12.0| | |`hipGraphInstantiateFlagDeviceLaunch`|5.6.0| | |5.6.0|
|`cudaGraphInstantiateFlagUpload`|12.0| | |`hipGraphInstantiateFlagUpload`|5.6.0| | |5.6.0|
|`cudaGraphInstantiateFlagUseNodePriority`|11.7| | |`hipGraphInstantiateFlagUseNodePriority`|5.6.0| | |5.6.0|
|`cudaGraphInstantiateFlagDeviceLaunch`|12.0| | |`hipGraphInstantiateFlagDeviceLaunch`|5.6.0| | | |
|`cudaGraphInstantiateFlagUpload`|12.0| | |`hipGraphInstantiateFlagUpload`|5.6.0| | | |
|`cudaGraphInstantiateFlagUseNodePriority`|11.7| | |`hipGraphInstantiateFlagUseNodePriority`|5.6.0| | | |
|`cudaGraphInstantiateFlags`|11.4| | |`hipGraphInstantiateFlags`|5.2.0| | | |
|`cudaGraphInstantiateInvalidStructure`|12.0| | | | | | | |
|`cudaGraphInstantiateMultipleDevicesNotSupported`|12.0| | | | | | | |
Expand Down Expand Up @@ -1171,7 +1171,7 @@
|`cudaHostRegisterIoMemory`|7.5| | |`hipHostRegisterIoMemory`|1.6.0| | | |
|`cudaHostRegisterMapped`| | | |`hipHostRegisterMapped`|1.6.0| | | |
|`cudaHostRegisterPortable`| | | |`hipHostRegisterPortable`|1.6.0| | | |
|`cudaHostRegisterReadOnly`|11.1| | |`hipHostRegisterReadOnly`|5.6.0| | |5.6.0|
|`cudaHostRegisterReadOnly`|11.1| | |`hipHostRegisterReadOnly`|5.6.0| | | |
|`cudaInitDeviceFlagsAreValid`|12.0| | | | | | | |
|`cudaInvalidDeviceId`|8.0| | |`hipInvalidDeviceId`|3.7.0| | | |
|`cudaIpcEventHandle_st`| | | |`hipIpcEventHandle_st`|3.5.0| | | |
Expand Down
Loading

0 comments on commit d8f95df

Please sign in to comment.