Closed harrison314 closed 5 months ago
hi @harrison314.
I was able to run your code on an RTX 1070 without issue.
Launch timeouts normally occur because the kernel is taking too long to run on a GPU which has an active display.
You could try to work around the issue by reducing the workload.
Not sure if this will help, but you could also try changing from Auto-Grouped to Explicit Grouping. The auto-grouping will try to consume all the resources on the GPU. If you reduced the workload, it might avoid the timeout issue.
Separately, looks like you used CopyToCPU
instead of CopyFromCPU
.
vectorInputData.CopyFromCPU(buffer);
idInputData.CopyFromCPU(idData);
Thanks, reducing the worload helped.
Question
I'm trying to find the most similar vectors on the graphics card using cosine similarity.
But in the
Accelerator.Synchronize()
method I get an exception ILGPU.Runtime.Cuda.CudaException: 'the launch timed out and was terminated'.Example kernels work normally for me.
Code to reproduce the problem:
What could be the problem?
Environment
Additional context
No response