running pcsegdist on gpu
2 次查看(过去 30 天)
显示 更早的评论
Hi, so its said in the documentation of the function pcsegdist, that it supports gpu, but when I run it, if I look into the function in debug mode, then:
isGPU = coder.gpu.internal.isGpuEnabled;
is 0 and it doesn't run on the gpu.
if I run the command:
gpuDevice
it shows that the device is selected:
K>> gpuDevice
ans =
CUDADevice with properties:
Name: 'NVIDIA GeForce RTX 2080 Ti'
Index: 1
ComputeCapability: '7.5'
SupportsDouble: 1
DriverVersion: 11.6000
ToolkitVersion: 11.2000
MaxThreadsPerBlock: 1024
MaxShmemPerBlock: 49152
MaxThreadBlockSize: [1024 1024 64]
MaxGridSize: [2.1475e+09 65535 65535]
SIMDWidth: 32
TotalMemory: 1.1811e+10
AvailableMemory: 1.0273e+10
MultiprocessorCount: 68
ClockRateKHz: 1545000
ComputeMode: 'Default'
GPUOverlapsTransfers: 1
KernelExecutionTimeout: 1
CanMapHostMemory: 1
DeviceSupported: 1
DeviceAvailable: 1
DeviceSelected: 1
Anyone knows what could be the issue ?
Thank you in advance.
0 个评论
回答(1 个)
Walter Roberson
2022-6-11
编辑:Walter Roberson
2022-6-12
The document says that the function is supported by GPU Coder, not that it can run on GPU normally.
There is no support for marking a pointCloud as existing on GPU; you cannot pointCloud() a gpuArray either.
For an example of the flow needed to do pointCloud work on GPU using GPU Coder toolbox, see https://www.mathworks.com/help/gpucoder/ug/lidar-point-cloud-segmentation-using-gpucoder.html
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Data Workflows 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!