SPECFEM / specfem3d_globe

SPECFEM3D_GLOBE simulates global and regional (continental-scale) seismic wave propagation.
GNU General Public License v3.0
90 stars 95 forks source link

Cleanups in OpenCL #132

Closed kpouget closed 10 years ago

kpouget commented 10 years ago

In https://github.com/geodynamics/specfem3d_globe/blob/devel/src/gpu/prepare_mesh_constants_gpu.c#L4048, OpenCL code is not properly cleaned up: memory objects are freed, but command queues, kernels, programs, contexts are not released. That's a potential memory leak, but it also prevents profiling with NVidia's nvprof.

kpouget commented 10 years ago

I'll work on that issue and I'll make a push request as soon as it's ready

Kevin

komatits commented 10 years ago

@kpouget Hi Kevin, Any update on that? Thanks, Dimitri.

kpouget commented 10 years ago

thanks for the reminder @komatits, I just pushed the pull request

it also prevents profiling with NVidia's nvprof

this part is not solve though, it seems that nvprof (> v5) just can't work with the OpenCL runtime

Cordially, Kevin