cudaMemcpy doesn’t copy unless the kernel submitted before, finish its execution in symmetric constraints. For this particular situation, what does the cudaMemcpy return? The cudaMemcpy function usually waits and as and when the device becomes free, it copies. Between, just when the cudaMemcpy realizes that the device is not free and starts waiting, is it not possible to make it return a value and exit from there (saying, the device is busy)? I want something like this to happen. My purpose is to check if a device is free or busy? Are there any APIs through which I can achieve this?
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
When does a GPU run end Aka when is it safe to copy data | 2 | 3553 | May 4, 2009 | |
A general question on Cuda Sync after kernal call | 3 | 381 | January 22, 2023 | |
cudaThreadSyncronize and cudaMemcpy | 2 | 2765 | February 11, 2008 | |
Can the host manipulate device memory when a kernel isn't running? | 1 | 780 | November 21, 2012 | |
accessing device memory during kernel execution | 3 | 1530 | March 10, 2010 | |
Problem with CudaMemcpy | 1 | 693 | March 18, 2014 | |
cudaMemcpy sometimes doesn't work | 5 | 4478 | November 13, 2008 | |
cudaMemcpy | 3 | 8417 | April 8, 2009 | |
Do the non-async calls sleep or burn CPU? | 20 | 22044 | January 13, 2008 | |
CUDA Question about cudaMemcpy | 1 | 563 | October 13, 2014 |