Results 1 to 3 of 3

Thread: OpenCL compiler crashed when compile some piece of simple code

  1. #1
    Join Date
    May 2018
    Posts
    2
    Rep Power
    1

    Default OpenCL compiler crashed when compile some piece of simple code

    Hi there, I got some trouble when I was trying to compile some complex OpenCL program with Intel FPGA OpenCL Offline Compiler.

    then compiler crashed, so I try to remove some code to examine this problem, finally I got a piece of simple test code which could result in crash of compiler:

    Code:
    void testB(ulong8 p, ulong8 h, ulong h8, const ulong* restrict t)
    {
        ulong4 p1;
        ulong8 p2;
        
        p1 = shuffle((ulong4)h8, (ulong4)44);
        p2 = shuffle2(p, h, (ulong8)55);
    }
    
    
    __kernel void testA(__global uint8* p)
    {
        ulong ta[5]={0};
        testB(1,2,3,ta);
    }
    It looks like the OpenCL builtin functions like shuffle and shuffle2 caused the crash

    The command line that I used to compile is:
    Code:
    aoc -v -g --report skein.cl
    The compiler version is:
    Code:
    Intel(R) FPGA SDK for OpenCL(TM), 64-Bit Offline Compiler
    Version 17.0.0 Build 290
    Copyright (C) 2017 Intel Corporation
    The compile log will be posted with attachment.

    Is there anyone got same problem as me ?
    thanks for your time.
    Attached Files Attached Files

  2. #2
    Join Date
    Jan 2017
    Posts
    692
    Rep Power
    1

    Default Re: OpenCL compiler crashed when compile some piece of simple code

    There are hundreds of bugs in Altera's compiler that could lead to such crashes. Your code snippet crashes the compiler all the way to the recent v18.0. In such cases, the only choices are to either change the design strategy to bypass the crash, or report it to Altera and then wait multiple months until they release a new version which might include a fix.

  3. #3
    Join Date
    May 2018
    Posts
    2
    Rep Power
    1

    Default Re: OpenCL compiler crashed when compile some piece of simple code

    Quote Originally Posted by HRZ View Post
    There are hundreds of bugs in Altera's compiler that could lead to such crashes. Your code snippet crashes the compiler all the way to the recent v18.0. In such cases, the only choices are to either change the design strategy to bypass the crash, or report it to Altera and then wait multiple months until they release a new version which might include a fix.
    that's a bad news, it's hard to say the Altera's OpenCL toolchain is good enough to develop some kind of industrial-grade product. I think I should give up and looking for some alternative solutions

Similar Threads

  1. opencl compile error
    By saewon1000 in forum OpenCL
    Replies: 2
    Last Post: November 19th, 2017, 08:44 PM
  2. Replies: 2
    Last Post: October 16th, 2017, 12:14 AM
  3. automatic load code, compile, program from external code
    By sitamar in forum Quartus II and EDA Tools Discussion
    Replies: 1
    Last Post: May 2nd, 2017, 02:57 AM
  4. Replies: 0
    Last Post: June 15th, 2016, 10:11 PM
  5. QSys output code won't compile - Arria II GX with simple socket server example
    By tgschneider in forum FPGA, Hardcopy, and CPLD Discussion
    Replies: 4
    Last Post: September 15th, 2015, 09:19 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •