[ 
https://issues.apache.org/jira/browse/SINGA-301?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15863130#comment-15863130
 ] 

Tan Li Boon commented on SINGA-301:
-----------------------------------

There are two ways we can go about this.

1. We can directly write the source code as a std::string in a file somewhere, 
for example in tensor_math_opencl.h or .cpp.

2. We can write a python script that will generate the same source code as 
above for us by reading in the .cl file and writing the code into the .h or 
.cpp file.

> Hardcode OpenCL source code as static strings
> ---------------------------------------------
>
>                 Key: SINGA-301
>                 URL: https://issues.apache.org/jira/browse/SINGA-301
>             Project: Singa
>          Issue Type: Improvement
>          Components: Core
>         Environment: All
>            Reporter: Tan Li Boon
>            Priority: Minor
>
> Currently, OpenCL kernel source code is a standalone file. This may be 
> problematic as the SINGA executable will fail to find the source code if it 
> is run from outside a few places.
> This issue will discuss a way to turn the source code into static strings 
> somehow, at compile-time.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to