I'd run it through a tool like xxd to turn it into a .c file you
link with.
--Thanks,Aaron
You received this message because you are subscribed to the Google Groups "ofx-discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ofx-discussio...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ofx-discussion/31e28c2d-15a3-4c7a-a69a-88005ae039a2o%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ofx-discussion/1720bfaa-6280-0898-57a6-d13ab24b46af%40gmail.com.
Shipping binary kernels can be problematic as there is no universal OpenCL program binary format that works on all platforms and drivers. But as Paul says, you could use xxd to make a .c file that you could link with. Or you can drop the .bin wherever you want in your bundle / folder structure. As long as it doesn't match the search rules for the plug-in binary, hosts will ignore it. Then your plug-in can open it from your known location.
Oh, yeah - what Dennis said. Your binary won't work across all types of GPUs/drivers.
I usually compress my kernel source into a .zip and then embed
that as source code using xxd.
///d@
--On Thu, Jun 11, 2020 at 2:53 PM Paul Miller <ste...@gmail.com> wrote:
--On 6/11/2020 2:43 PM, Aaron Boxer wrote:
Hello!I am building an opencl-enabled plugin, and I would like to include the kernel binary in the .ofxbundle and be able to access the binary from the plugin.
So, if I have MyPlugin.ofx.bundle, where should I put my MyPlugin.bin kernel binary?
I'd run it through a tool like xxd to turn it into a .c file you link with.
--Thanks,Aaron
You received this message because you are subscribed to the Google Groups "ofx-discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ofx-discussio...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ofx-discussion/31e28c2d-15a3-4c7a-a69a-88005ae039a2o%40googlegroups.com.
You received this message because you are subscribed to the Google Groups "ofx-discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ofx-discussio...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ofx-discussion/1720bfaa-6280-0898-57a6-d13ab24b46af%40gmail.com.
You received this message because you are subscribed to the Google Groups "ofx-discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ofx-discussio...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ofx-discussion/CA%2BmXBqB5HTc_yY%2BAvpSRUwzLaa01e3WsLGTLTS2-8Ztf9KFV2A%40mail.gmail.com.
On 6/11/2020 2:43 PM, Aaron Boxer wrote:
Hello!I am building an opencl-enabled plugin, and I would like to include the kernel binary in the .ofxbundle and be able to access the binary from the plugin.
So, if I have MyPlugin.ofx.bundle, where should I put my MyPlugin.bin kernel binary?
I'd run it through a tool like xxd to turn it into a .c file you link with.
--Thanks,Aaron
You received this message because you are subscribed to the Google Groups "ofx-discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ofx-dis...@googlegroups.com.
Is this going to work across different vendors?
On 6/11/2020 2:58 PM, Dithermaster wrote:
Shipping binary kernels can be problematic as there is no universal OpenCL program binary format that works on all platforms and drivers. But as Paul says, you could use xxd to make a .c file that you could link with. Or you can drop the .bin wherever you want in your bundle / folder structure. As long as it doesn't match the search rules for the plug-in binary, hosts will ignore it. Then your plug-in can open it from your known location.Oh, yeah - what Dennis said. Your binary won't work across all types of GPUs/drivers.
I usually compress my kernel source into a .zip and then embed that as source code using xxd.
///d@
On Thu, Jun 11, 2020 at 2:53 PM Paul Miller <ste...@gmail.com> wrote:
On 6/11/2020 2:43 PM, Aaron Boxer wrote:
Hello!I am building an opencl-enabled plugin, and I would like to include the kernel binary in the .ofxbundle and be able to access the binary from the plugin.
So, if I have MyPlugin.ofx.bundle, where should I put my MyPlugin.bin kernel binary?
I'd run it through a tool like xxd to turn it into a .c file you link with.
--Thanks,Aaron
You received this message because you are subscribed to the Google Groups "ofx-discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ofx-dis...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ofx-discussion/31e28c2d-15a3-4c7a-a69a-88005ae039a2o%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "ofx-discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ofx-dis...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ofx-discussion/1720bfaa-6280-0898-57a6-d13ab24b46af%40gmail.com.
--
You received this message because you are subscribed to the Google Groups "ofx-discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ofx-dis...@googlegroups.com.
Shipping binary kernels can be problematic as there is no universal OpenCL program binary format that works on all platforms and drivers. But as Paul says, you could use xxd to make a .c file that you could link with. Or you can drop the .bin wherever you want in your bundle / folder structure. As long as it doesn't match the search rules for the plug-in binary, hosts will ignore it. Then your plug-in can open it from your known location.
///d@
On Thu, Jun 11, 2020 at 2:53 PM Paul Miller <ste...@gmail.com> wrote:
On 6/11/2020 2:43 PM, Aaron Boxer wrote:
Hello!I am building an opencl-enabled plugin, and I would like to include the kernel binary in the .ofxbundle and be able to access the binary from the plugin.
So, if I have MyPlugin.ofx.bundle, where should I put my MyPlugin.bin kernel binary?
I'd run it through a tool like xxd to turn it into a .c file you link with.
--Thanks,Aaron
You received this message because you are subscribed to the Google Groups "ofx-discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ofx-dis...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ofx-discussion/31e28c2d-15a3-4c7a-a69a-88005ae039a2o%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "ofx-discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ofx-dis...@googlegroups.com.
On Thursday, June 11, 2020 at 3:59:07 PM UTC-4, Dennis Adams wrote:Shipping binary kernels can be problematic as there is no universal OpenCL program binary format that works on all platforms and drivers. But as Paul says, you could use xxd to make a .c file that you could link with. Or you can drop the .bin wherever you want in your bundle / folder structure. As long as it doesn't match the search rules for the plug-in binary, hosts will ignore it. Then your plug-in can open it from your known location.Thanks, I think this is the simplest approach, just drop it somewhere in the bundle.
On Thursday, June 11, 2020 at 4:08:17 PM UTC-4, Aaron Boxer wrote:
On Thursday, June 11, 2020 at 3:59:07 PM UTC-4, Dennis Adams wrote:Shipping binary kernels can be problematic as there is no universal OpenCL program binary format that works on all platforms and drivers. But as Paul says, you could use xxd to make a .c file that you could link with. Or you can drop the .bin wherever you want in your bundle / folder structure. As long as it doesn't match the search rules for the plug-in binary, hosts will ignore it. Then your plug-in can open it from your known location.Thanks, I think this is the simplest approach, just drop it somewhere in the bundle.The issue is then getting the path right, because it will depend on the working binary of the program loading the plugin, I think.
To unsubscribe from this group and stop receiving emails from it, send an email to ofx-discussio...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ofx-discussion/865da030-8835-46bb-85b8-7c648b2f063co%40googlegroups.com.