- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am implementing a number of kernels. I have a requirement that these are built into a single .ir. However. I would like to keep my kernels in separate .cl files.
Is it possible, via ioc32 cmd line, to build separate cl files into a single .ir
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please take a look at the following thread: https://software.intel.com/en-us/forums/topic/540194
You can concatenate multiple .cl files as a preprocessing step.
Alternatively, you can -compile individual .cl files and then -link (multiple files could be provided: see below)
-binary="<binary_files_paths>" - Link binary files, comma seperated if more than one (use with 'link' command)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I've tried compiling .cls indivually (for gpu, CL version 1.2) and using the -link option,
From the ioc32 command line this give a linkage error with no additional info.
Using OpenCL Code Builder. I compile the .cls and save as binary irs. If I select these and link I get an error 'No binary data found to save. Make sure you build/compile first"
Are there any build/link options I need to specify apart from setting -cl-std to CL1.2 in build options?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Use -spir64 option to output spir files: you wouldn't be able to link ir files.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page