zuzuf / freeocl

Automatically exported from code.google.com/p/freeocl
GNU Lesser General Public License v3.0
31 stars 8 forks source link

Some needs for userful debugging. #7

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
1) Please, don't delete temporary files when compiled in debug mode.
Example:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xf4a6f940 (LWP 28859)]
fl_summ (neuronit=<optimized out>, cs1stc=<optimized out>, weights=<optimized 
out>) at /tmp/fileJ4cnyP:133
133     /tmp/fileJ4cnyP: No such file or directory

2) Freoocl uses gcc as cl compiler. Why do not to pass standard C flags to it? 
I got error when use "-g" in options.
clBuildProgram( program, 0, NULL, options, NULL, NULL );

Original issue reported on code.google.com by infer...@gmail.com on 6 Aug 2012 at 2:17

GoogleCodeExporter commented 9 years ago
The temporary files issue is annoying to me too but what I had planned was to 
delete them with the associated cl_program object if no error is reported (in 
case of error the file would be left in /tmp). I am going to implement that.

Regarding compiler flags, you can set the FREEOCL_CXX_FLAGS environment 
variable as a workaround (see 
http://code.google.com/p/freeocl/wiki/EnvironmentVariables for details).

Original comment by zuzu...@gmail.com on 6 Aug 2012 at 8:27

GoogleCodeExporter commented 9 years ago
Temporary files issue fixed in r252.

I am still looking for a convenient way to pass compiler specific parameters to 
cl compiler. btw there are a couple of useful flags set by default like -g and 
-O3, -cl-opt-disable sets -g -O0.

Original comment by zuzu...@gmail.com on 6 Aug 2012 at 9:01