xavierandrade / fortrancl

FortranCL: a Fortran 90 interface for OpenCL
GNU Lesser General Public License v3.0
11 stars 6 forks source link

CL_PROFILING_INFO_NOT_AVAILABLE #6

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a command queue with CL_QUEUE_PROFILING_ENABLE
2. Call a C function who uses it. "call cfunction(command_queue)" "void 
cfuction(cl_command_queue *cmd_queue)"
3. call clGetEventProfilingInfo to get info about the event who used the 
*cmd_queue

What is the expected output? What do you see instead?
Info about the event. CL_PROFILING_INFO_NOT_AVAILABLE.

What version of the product are you using? On what operating system?
Running on Debian 6 kernel 2.6.32, ifort and icpc as compilers.

Please provide any additional information below.

Original issue reported on code.google.com by cezar.a....@gmail.com on 27 May 2013 at 6:25

GoogleCodeExporter commented 8 years ago
Can you give more details about what you are trying to do. Currently, FortranCL 
does not provide an interface to clGetEventProfilingInfo.

Original comment by xavier.andrade.valencia on 30 Aug 2013 at 11:34

GoogleCodeExporter commented 8 years ago
I have a huge Fortran program, it is a model called CCATT-BRAMS, used in 
simulations about air quality and weather forecast. This model runs several 
timesteps, so, in our research here, we are trying to write one of the routines 
called by each timestep for GPGPU.
The OpenCL and CUDA codes are writen in C, so, I'm using your interface to 
create a command queue before the timesteps start, this way I can use the same 
command queue in all of them.
Then, I call my C function (OpenCL/CUDA), and I would like to get the profiling 
info from the kernel execution on GPU, to know the total runtime on GPU.

Original comment by cezar.a....@gmail.com on 5 Sep 2013 at 5:02