- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
the OpenCL software emulation crashes with a segmentation fault when the kernel utilizes more than 6MByte of memory. Example:
uchar arr[128*128*384]; // 6MByte -- Works
uchar arr[128*128*385]; // more than 6MByte -- Segmentation Fault
If this behavior is intended, a warning message would be appreciated, to prevent people from searching for a non-existing bug in their code.
Setup:
Ubuntu 16.04.2
Intel FPGA SDK for OpenCL 18.0.0-219
Tested Boards:
Arria 10 (ref BSP and BSP of custom hardware)
Stratix 10 (only BSP of custom hardware)
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
May I request the testcase for replication? What is the cmd you are executing?
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
thank you for the reply, I attached a simple test case to reproduce the error.
The build commands I used were:
# Host application
make
# Kernel
aoc -march=emulator krnl.cl -o bin/krnl_emu.aocx
and for execution:
CL_CONTEXT_EMULATOR_DEVICE_INTELFPGA=1 bin/host bin/krnl_emu.aocx
Depending on which size define is enabled in krnl.cl, the application either crashes or executes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I am sorry for the late response. I installed 19.1 but trying to compile any kernel using the fast emulator fails with:
Error: OpenCL kernel compilation FAILED
The ioc.log contains the following lines:
Using build options: -cl-std=CL1.2 -Xclang -Wuninitialized -I "/home/user/vector_add/device"
Failed to get platform id...: 0 (CL_SUCCESS)
Compilation failed!
Any thoughts on what might be the problem?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I managed to solve the problem. It did not work because I forgot to install a device ... 😟
Anyway, using the fast emulator indeed removed the problem, the application no longer crashes for data > 6MB.
Thank you for your assistance.

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