Forum Discussion
Besically, I agree with HRZ's comment and I'd like to follow up.
According to below latest document(Including Structure Data Types as Arguments in OpenCL Kernels), you can see it.
https://www.intel.com/content/www/us/en/programmable/documentation/mwh1391807965224.html#mwh1391807954819
If you have any more error, please let me know.
Hi Hiroto,
so according to the documentation I can pass structure parameters in OpenCL kernels by value.
But the emulator fails in compiling it (see my first post). Why is this happening?
This occur even if I disable the automatic alignment by using the packed attribute (in any case, the alignment is 1 byte being the struct composed by 2 chars).
Thanks
- Hiroto_K_Intel6 years ago
New Contributor
Hi, tde_m,
Yes, you are right.
BTW, could you like to test with -fast-emulator flag ?
Intel recommends when emulating kernel code, you add -fast-emulator for 18.1 and later.
https://www.intel.com/content/www/us/en/programmable/documentation/mwh1391807965224.html#hzx1553406416602
On my side, the code you posted firstly completed compiling successfully.
Only -march=emulator mode is legacy now and it is possibility that the issue was reported and has been resolved when migrating from lagacy emulator to fast emulator.
If so, I could not get the answer why, sorry.
- tde_m6 years ago
Occasional Contributor
Hello,
I've tried but the aoc compiler returns with an error message:
Error: aoc: The Intel(R) Kernel Builder for OpenCL(TM) compiler (ioc64) can not be foundI'm using Version 18.1.1 Build 263 Pro Edition.
I've tried also on a different installation and version of the tool (19.1 Pro) and the error is always the same.
- Hiroto_K_Intel6 years ago
New Contributor
Hello,
ioc64 is original component in system studio.
Did you install intel_sdk_for_opencl_setup_<version>.run ?
It is included in AOCLPro tar package(when uncompressed, it is in components) and when installing by using setup.sh, this run script should be executed.
(If X11 windows disabled, the installation might fail)
If not installed, could you please install it and try again ?
If installed, please check the directory and you can see ioc64 binary.
the default path as non-root user is here.
/home/<user_name>/intel/system_studio_2019/opencl/SDK/bin
- Hiroto_K_Intel6 years ago
New Contributor
Hi, tde_m,
Following previous comment, did you resolve this issue ? If not, please let me know.
- tde_m6 years ago
Occasional Contributor
Hello,
I've installed it using the provided .run file. However, since I've installed it on a server, I think that it has been disabled because X11 is not present.
Is there a way to install it without X-server?
Thanks
- Hiroto_K_Intel6 years ago
New Contributor
Hi, tde_m,
Without X11, you have to run some scripts with options manually.
./intel_sdk_for_opencl_setup_2019.3.run --nox11 --target ./<exacted_installer_dir> cd <exacted_installer_dir> #edit silent.cfg -> ACCEPT_EULA=accept #edit silent.cfg -> PSET_INSTALL_DIR=<package_install_target> ./install.sh -s silent.cfgIf you have questions about silent.cfg, please read README.txt in <exacted_installer_dir>
- Hiroto_K_Intel6 years ago
New Contributor
Hi, tde_m,
Did you resolve this issue ? or have any more question ?
- Hiroto_K_Intel6 years ago
New Contributor
Hi, tde_m,
Did you compile emulation successfully ? If not, could you like to explain error messages ?
- tde_m6 years ago
Occasional Contributor
Hello,
sorry for the delay.
I am working on version 19.1 of Quartus Pro. After extraction, I don't find the file that you are mentioning.
I tried to re-install in text-mode (setting the mode flag to "text"), but it still don't find the ioc64 binary.
Do I need to install the last version of Quartus?
Regards,
- Hiroto_K_Intel6 years ago
New Contributor
Hi, tde_m,
Did you compile your project successfully ? If you have any more issue, please let me know.