Added a function for checking whether CUDA-capable devices are available

This commit is contained in:
jpekkila
2019-08-08 20:35:02 +03:00
parent 8a9099d75e
commit e79e1207f2
2 changed files with 16 additions and 0 deletions

View File

@@ -49,6 +49,10 @@ AcResult acInit(const AcMeshInfo mesh_info);
* called at exit. */
AcResult acQuit(void);
/** Checks whether there are any CUDA devices available. Returns AC_SUCCESS if there is 1 or more,
* AC_FAILURE otherwise. */
AcResult acCheckDeviceAvailability(void);
/** Synchronizes a specific stream. All streams are synchronized if STREAM_ALL is passed as a
* parameter*/
AcResult acSynchronizeStream(const Stream stream);