On Sun, Jun 5, 2016 at 8:46 PM, Param Hanji <param.catchch...@gmail.com>
wrote:
> Yup, that's how I defined it too. But ran into a problem. Like I mentioned
> earlier, compilation of my OpenCL source code happens from some
> pre-determined location (/usr/brlcad/dev-7.25.0/share/opencl/). If I change
> the source code, save and do 'make ; make install', the file at
> /usr/brlcad/dev-7.25.0/share/opencl/ will get changed. I can see these
> changes. However the error message in given by clGetProgramBuildInfo says
> that the original file (without #define is used). I tried completely
> uninstalling and remaking the files, it didn't help.
>
Depending on the OpenCL implementation the compiled binaries may be cached,
by the system, to minimize the overhead of recompiling the .cl sources upon
program load. But if you change the source files it should recompile the
code again next time you launch the program.
> I also copied the OpenCL folder to my Downloads and forcibly changed the
> path in primitive_util.c (lines 533-536)
>
> for (i=0; i<count; i++) {
> snprintf(file, MAXPATHLEN, "%s%c%s", BRLCAD_OPENCL_DIR, BU_DIR_SEPARATOR,
> filenames[i]);
> //snprintf(path, MAXPATHLEN, "%s", bu_brlcad_data(file, 0));
> snprintf(path, MAXPATHLEN, "%s%s", "/Users/catchchaos/Downloads/", file);
>
> Yet again the OpenCL compiler looks in the original directory (which also
> contains the modified version). I'll attach a part of the logs.
>
Make sure you are running the right mged and rt binaries. It sounds like
maybe you aren't running the version you modified.
--
Vasco Alexandre da Silva Costa
PhD in Computer Engineering (Computer Graphics)
Instituto Superior Técnico/University of Lisbon, Portugal
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
_______________________________________________
BRL-CAD Developer mailing list
brlcad-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-devel