Hi Andreas,

PS. Another example of using a macro for handling error inside the kernel code 
in C++ dev environment but am yet to see someone use it in pycuda.

https://codeyarns.com/2011/03/02/cuda-assertion-in-kernel-code/


Sanjay Rana | Design Directorate
Rural Payments Agency | Room 200 | North Gate House | Reading | RG1 1AF
Jabber: 02077642065 | ext. 42065 | Email: [email protected]
Follow us on Twitter @Ruralpay 


-----Original Message-----
From: Rana, Sanjay 
Sent: 20 June 2017 19:46
To: 'Andreas Kloeckner'; [email protected]
Subject: RE: [PyCUDA] Handle Error in CUDA Kernel

Hi Andreas

Thanks. I was thinking of something like the following:

https://stackoverflow.com/questions/14038589/what-is-the-canonical-way-to-check-for-errors-using-the-cuda-runtime-api

I haven't really tried this because mainly being a newbie into C++ and pycuda 
really. Hence I was looking for examples where in errors arising in the kernel 
were being handled and, so for example in case of batch processing of lots of 
images, recover from occasional crash in few images and  reset the various 
initialisation parameters and continue on. Apologies if this comes across as 
mumbo jumbo..
 

Sanjay Rana | Design Directorate
Rural Payments Agency | Room 200 | North Gate House | Reading | RG1 1AF
Jabber: 02077642065 | ext. 42065 | Email: [email protected] Follow us 
on Twitter @Ruralpay 

-----Original Message-----
From: Andreas Kloeckner [mailto:[email protected]]
Sent: 20 June 2017 17:57
To: Rana, Sanjay; [email protected]
Subject: Re: [PyCUDA] Handle Error in CUDA Kernel

"Rana, Sanjay" <[email protected]> writes:
> Are there any examples out there on ways to catch and handle errors in the 
> CUDA Kernel code ?
> I have seen examples for CUDA programming in C/C++ but not so many for pycuda.

Could you point us towards those examples? That would make it easier to 
understand what you mean by "catch and handle errors". In addition, please 
describe what happens when you do the equivalent thing in PyCUDA.

Andreas

______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com 
______________________________________________________________________
************************************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
Cisco ESA for the presence of computer viruses.
************************************************************************************


_______________________________________________
PyCUDA mailing list
[email protected]
https://lists.tiker.net/listinfo/pycuda

Reply via email to