Update samples for CUDA 11.8 with correct props

This commit is contained in:
Rob Nertney
2022-10-14 17:43:37 -07:00
parent b312abaa07
commit 81992093d2
1146 changed files with 4209 additions and 4272 deletions

View File

@@ -338,9 +338,9 @@ endif
# Gencode arguments
ifeq ($(TARGET_ARCH),$(filter $(TARGET_ARCH),armv7l aarch64 sbsa))
SMS ?= 53 61 70 72 75 80 86 87
SMS ?= 53 61 70 72 75 80 86 87 90
else
SMS ?= 35 37 50 52 60 61 70 75 80 86
SMS ?= 35 37 50 52 60 61 70 75 80 86 90
endif
ifeq ($(SMS),)

View File

@@ -7,32 +7,32 @@
</cflags>
<cuda_api_list>
<driver>cuDeviceGetUuid</driver>
<toolkit>cudaGetMipmappedArrayLevel</toolkit>
<toolkit>cudaImportNvSciImage</toolkit>
<toolkit>cudaImportExternalSemaphore</toolkit>
<toolkit>cudaGetMipmappedArrayLevel</toolkit>
<toolkit>cudaSetDevice</toolkit>
<toolkit>cudaDestroySurfaceObject</toolkit>
<toolkit>cudaCreateSurfaceObject</toolkit>
<toolkit>cudaImportNvSciImage</toolkit>
<toolkit>cudaCreateChannelDesc</toolkit>
<toolkit>cudaMallocHost</toolkit>
<toolkit>cudaSignalExternalSemaphoresAsync</toolkit>
<toolkit>cudaFreeHost</toolkit>
<toolkit>cudaMemcpyAsync</toolkit>
<toolkit>cudaStreamCreateWithFlags</toolkit>
<toolkit>cudaExternalMemoryGetMappedMipmappedArray</toolkit>
<toolkit>cudaDestroyExternalMemory</toolkit>
<toolkit>cudaMemcpyAsync</toolkit>
<toolkit>cudaStreamDestroy</toolkit>
<toolkit>cudaSignalExternalSemaphoresAsync</toolkit>
<toolkit>cudaDeviceGetNvSciSyncAttributes</toolkit>
<toolkit>cudaFreeMipmappedArray</toolkit>
<toolkit>cudaMallocHost</toolkit>
<toolkit>cudaDestroySurfaceObject</toolkit>
<toolkit>cudaImportExternalMemory</toolkit>
<toolkit>cudaMalloc</toolkit>
<toolkit>cudaSetDevice</toolkit>
<toolkit>cudaDestroyExternalSemaphore</toolkit>
<toolkit>cudaCreateChannelDesc</toolkit>
<toolkit>cudaStreamSynchronize</toolkit>
<toolkit>cudaFree</toolkit>
<toolkit>cudaFreeArray</toolkit>
<toolkit>cudaCreateSurfaceObject</toolkit>
<toolkit>cudaFreeHost</toolkit>
<toolkit>cudaMallocArray</toolkit>
<toolkit>cudaWaitExternalSemaphoresAsync</toolkit>
<toolkit>cudaFreeArray</toolkit>
<toolkit>cudaStreamDestroy</toolkit>
<toolkit>cudaDeviceGetNvSciSyncAttributes</toolkit>
<toolkit>cudaDestroyExternalMemory</toolkit>
<toolkit>cudaImportExternalMemory</toolkit>
<toolkit>cudaDestroyExternalSemaphore</toolkit>
<toolkit>cudaFreeMipmappedArray</toolkit>
<toolkit>cudaImportNvSciSync</toolkit>
<toolkit>cudaFree</toolkit>
<toolkit>cudaStreamSynchronize</toolkit>
<toolkit>cudaMalloc</toolkit>
<toolkit>cudaWaitExternalSemaphoresAsync</toolkit>
</cuda_api_list>
<description><![CDATA[This sample demonstrates CUDA-NvMedia interop via NvSciBuf/NvSciSync APIs. Note that this sample only supports cross build from x86_64 to aarch64, aarch64 native build is not supported. For detailed workflow of the sample please check cudaNvSciNvMedia_Readme.pdf in the sample directory.]]></description>
<devicecompilation>whole</devicecompilation>
@@ -77,6 +77,7 @@
<sm-arch>sm80</sm-arch>
<sm-arch>sm86</sm-arch>
<sm-arch>sm87</sm-arch>
<sm-arch>sm90</sm-arch>
<supported_envs>
<env>
<arch>aarch64</arch>

View File

@@ -10,7 +10,7 @@ CUDA NvSci Interop, Data Parallel Algorithms, Image Processing
## Supported SM Architectures
[SM 6.0 ](https://developer.nvidia.com/cuda-gpus) [SM 6.1 ](https://developer.nvidia.com/cuda-gpus) [SM 7.0 ](https://developer.nvidia.com/cuda-gpus) [SM 7.2 ](https://developer.nvidia.com/cuda-gpus) [SM 7.5 ](https://developer.nvidia.com/cuda-gpus) [SM 8.0 ](https://developer.nvidia.com/cuda-gpus) [SM 8.6 ](https://developer.nvidia.com/cuda-gpus) [SM 8.7 ](https://developer.nvidia.com/cuda-gpus)
[SM 6.0 ](https://developer.nvidia.com/cuda-gpus) [SM 6.1 ](https://developer.nvidia.com/cuda-gpus) [SM 7.0 ](https://developer.nvidia.com/cuda-gpus) [SM 7.2 ](https://developer.nvidia.com/cuda-gpus) [SM 7.5 ](https://developer.nvidia.com/cuda-gpus) [SM 8.0 ](https://developer.nvidia.com/cuda-gpus) [SM 8.6 ](https://developer.nvidia.com/cuda-gpus) [SM 8.7 ](https://developer.nvidia.com/cuda-gpus) [SM 9.0 ](https://developer.nvidia.com/cuda-gpus)
## Supported OSes
@@ -26,14 +26,14 @@ aarch64
cuDeviceGetUuid
### [CUDA Runtime API](http://docs.nvidia.com/cuda/cuda-runtime-api/index.html)
cudaGetMipmappedArrayLevel, cudaImportNvSciImage, cudaImportExternalSemaphore, cudaStreamCreateWithFlags, cudaExternalMemoryGetMappedMipmappedArray, cudaDestroyExternalMemory, cudaMemcpyAsync, cudaStreamDestroy, cudaSignalExternalSemaphoresAsync, cudaDeviceGetNvSciSyncAttributes, cudaFreeMipmappedArray, cudaMallocHost, cudaDestroySurfaceObject, cudaImportExternalMemory, cudaMalloc, cudaSetDevice, cudaDestroyExternalSemaphore, cudaCreateChannelDesc, cudaStreamSynchronize, cudaFree, cudaFreeArray, cudaCreateSurfaceObject, cudaFreeHost, cudaMallocArray, cudaWaitExternalSemaphoresAsync, cudaImportNvSciSync
cudaImportExternalSemaphore, cudaGetMipmappedArrayLevel, cudaSetDevice, cudaDestroySurfaceObject, cudaCreateSurfaceObject, cudaImportNvSciImage, cudaCreateChannelDesc, cudaMallocHost, cudaSignalExternalSemaphoresAsync, cudaFreeHost, cudaMemcpyAsync, cudaStreamCreateWithFlags, cudaExternalMemoryGetMappedMipmappedArray, cudaMallocArray, cudaFreeArray, cudaStreamDestroy, cudaDeviceGetNvSciSyncAttributes, cudaDestroyExternalMemory, cudaImportExternalMemory, cudaDestroyExternalSemaphore, cudaFreeMipmappedArray, cudaImportNvSciSync, cudaFree, cudaStreamSynchronize, cudaMalloc, cudaWaitExternalSemaphoresAsync
## Dependencies needed to build/run
[NVSCI](../../../README.md#nvsci), [NvMedia](../../../README.md#nvmedia)
## Prerequisites
Download and install the [CUDA Toolkit 11.6](https://developer.nvidia.com/cuda-downloads) for your corresponding platform.
Download and install the [CUDA Toolkit 11.8](https://developer.nvidia.com/cuda-downloads) for your corresponding platform.
Make sure the dependencies mentioned in [Dependencies]() section above are installed.
## Build and Run

View File

@@ -56,6 +56,7 @@ ifeq ("$(TARGET_OS)","linux")
RHEL = $(shell echo $(DISTRO) | grep -i 'red\|rhel' >/dev/null 2>&1; echo $$?)
CENTOS = $(shell echo $(DISTRO) | grep -i centos >/dev/null 2>&1; echo $$?)
SUSE = $(shell echo $(DISTRO) | grep -i 'suse\|sles' >/dev/null 2>&1; echo $$?)
KYLIN = $(shell echo $(DISTRO) | grep -i kylin >/dev/null 2>&1; echo $$?)
ifeq ("$(UBUNTU)","0")
ifeq ($(HOST_ARCH)-$(TARGET_ARCH),x86_64-armv7l)
GLPATH := /usr/arm-linux-gnueabihf/lib
@@ -101,6 +102,11 @@ ifeq ("$(TARGET_OS)","linux")
GLLINK ?= -L/usr/lib64/nvidia
DFLT_PATH ?= /usr/lib64
endif
ifeq ("$(KYLIN)","0")
GLPATH ?= /usr/lib64/nvidia
GLLINK ?= -L/usr/lib64/nvidia
DFLT_PATH ?= /usr/lib64
endif
NVMEDIALIB := $(shell find -L $(GLPATH) $(DFLT_PATH) -name libnvmedia.so -print 2>/dev/null)

View File

@@ -56,6 +56,7 @@ ifeq ("$(TARGET_OS)","linux")
RHEL = $(shell echo $(DISTRO) | grep -i 'red\|rhel' >/dev/null 2>&1; echo $$?)
CENTOS = $(shell echo $(DISTRO) | grep -i centos >/dev/null 2>&1; echo $$?)
SUSE = $(shell echo $(DISTRO) | grep -i 'suse\|sles' >/dev/null 2>&1; echo $$?)
KYLIN = $(shell echo $(DISTRO) | grep -i kylin >/dev/null 2>&1; echo $$?)
ifeq ("$(UBUNTU)","0")
ifeq ($(HOST_ARCH)-$(TARGET_ARCH),x86_64-armv7l)
GLPATH := /usr/arm-linux-gnueabihf/lib
@@ -101,6 +102,11 @@ ifeq ("$(TARGET_OS)","linux")
GLLINK ?= -L/usr/lib64/nvidia
DFLT_PATH ?= /usr/lib64
endif
ifeq ("$(KYLIN)","0")
GLPATH ?= /usr/lib64/nvidia
GLLINK ?= -L/usr/lib64/nvidia
DFLT_PATH ?= /usr/lib64
endif
NVSCIBUFLIB := $(shell find -L $(GLPATH) $(DFLT_PATH) -name libnvscibuf.so -print 2>/dev/null)
NVSCISYNCLIB := $(shell find -L $(GLPATH) $(DFLT_PATH) -name libnvscisync.so -print 2>/dev/null)