Fix OpenCL binary cache file name generation
commit208c65ce31e655c541c6349c517012026a9a2f08
authorSzilárd Páll <pall.szilard@gmail.com>
Mon, 30 May 2016 15:52:18 +0000 (30 17:52 +0200)
committerErik Lindahl <erik.lindahl@gmail.com>
Thu, 2 Jun 2016 11:22:41 +0000 (2 13:22 +0200)
treeee5fad5034393b18a9ec34eb281500b8be18f9ac
parent966381a3ca704a9683b99d4f1bef9b2b51123dcf
Fix OpenCL binary cache file name generation

The binary cache names was generated from the full path prefixed
with a constant string which is a not a valid filename.

Also added assertion on the file pointer passed to fclose.

Change-Id: I838cf9a2e19385afaf26b80a15be2b74973d3a4c
src/gromacs/gpu_utils/ocl_caching.cpp
src/gromacs/gpu_utils/ocl_compiler.cpp