StreamHPC / gromacs

OpenCL porting of the GROMACS molecular simulation toolkit
http://www.gromacs.org
Other
25 stars 4 forks source link

Handle building errors for the OpenCL kernels #7

Closed ancahamuraru closed 9 years ago

ancahamuraru commented 10 years ago

If building the OpenCL kernels fails a way of logging the build output is necessary. See also Issue #6

ancahamuraru commented 9 years ago

Tested the latest OpenCL build log management features. If the OpenCL build fails: the build log is printed out and also saved to file. Great!

I think we should also print out the name of the file where the log is saved.

dkarkoulis commented 9 years ago

In release build the log is saved to a file in case of failure. In debug build the log is saved to a file and if it failed it is also dumped on the console.

I guess there are cases when the log on console is also needed in release or successful compilation. In fact it should not be hardcoded. Maybe an option or a "getenv". Needs discussion

For the name of the file, it is done and it will be committed soon!

ancahamuraru commented 9 years ago

All good for now. We can leave the printing to the console just for debug mode.

For all builds, in case of OpenCL build failure, the log is saved to file and the name of the file gets printed to console. In debug, the log is also dumped to the console.