Using gpuArray to meet a error "An unexpected error occurred trying to launch a kernel"

Hi,
I used gpuArray with some functions such as permute and pagefun. A error ocurred: "An unexpected error occurred trying to launch a kernel. The CUDA error was: invalid configuration argument"
Here is my gpuDevice information:
Name: 'GeForce GTX 1080'
Index: 1
ComputeCapability: '6.1'
SupportsDouble: 1
DriverVersion: 10.2000
ToolkitVersion: 10.1000
MaxThreadsPerBlock: 1024
MaxShmemPerBlock: 49152
MaxThreadBlockSize: [1024 1024 64]
MaxGridSize: [2.1475e+09 65535 65535]
SIMDWidth: 32
TotalMemory: 8.5899e+09
AvailableMemory: 6.7484e+09
MultiprocessorCount: 20
ClockRateKHz: 1759000
ComputeMode: 'Default'
GPUOverlapsTransfers: 1
KernelExecutionTimeout: 1
CanMapHostMemory: 1
DeviceSupported: 1
DeviceSelected: 1
When the error ocurred, the error could be solved by re-run the same code again without changing anything. I really don't know how to fix it.

4 件のコメント

Matt J
Matt J 2020 年 6 月 23 日
It sounds like you did fix it . As you say, when you re-ran, it worked.
Y.Yang
Y.Yang 2020 年 6 月 23 日
But it only works for re-running that specific line. If I re-run the entire m file, it will be forced to terminate it by the error.
Hey Y.Yang - were you able to find a fix for this? I'm running into exactly this issue. Thanks
Y.Yang
Y.Yang 2021 年 2 月 3 日
No. I believe it is a bug, not coding error.

サインインしてコメントする。

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeGPU Computing についてさらに検索

製品

リリース

R2020a

質問済み:

2020 年 6 月 23 日

コメント済み:

2021 年 2 月 3 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by