[JNI][OCL] OpenCL JNI logging improved
#define LOG_OCL_JNI(name, result) \
if (LOG_JNI == 1) { \
- std::cout << "[TornadoVM-JNI] Calling : " << name \
+ std::cout << "[TornadoVM-OCL-JNI] Calling : " << name \
<< " -> Status: " << result \
<< std::endl; \
} \
-
+ if (result != CL_SUCCESS) { \
+ std::cout << "[TornadoVM-OCL-JNI] ERROR : " << name \
+ << " -> Returned: " << result \
+ << std::endl; \
+ }
#endif
