Results 1 to 6 of 6

Thread: Compile kernel as task not as NDRange

  1. #1
    Join Date
    Mar 2017
    Posts
    11
    Rep Power
    1

    Default Compile kernel as task not as NDRange

    Hi,

    My design has multiple kernels communicating through channels forming a chain like this:

    Kga -> Kconf -> Kene -> Kst

    It is running correctly in emulation, but some information in the optimization report seems strange to me:
    Specifically, one kernel (Kga) is compiled as NDRange, although no work-item function is used in any kernel.

    Is there any function/statement that is causing this kernel to be compiled as NDRange?

  2. #2
    Join Date
    Sep 2016
    Posts
    30
    Rep Power
    1

    Default Re: Compile kernel as task not as NDRange

    Try adding __attribute__((max_global_work_dim(0))) for that kernel, this should ensure it is compiled as a single work-item kernel.

    source: AOCL programming guide, 2.3.1.1

  3. #3
    Join Date
    Mar 2017
    Posts
    11
    Rep Power
    1

    Default Re: Compile kernel as task not as NDRange

    Thanks for the info.
    I added that attribute, but unfortunately that kernel is still being compiled as ND-Range.

    The log shows warnings:
    "Compiler Warning: Channel ordering barrier insertion in X of Kernel Kga, but kernels may hang as a result"

    I donīt know how to interpret this warning. Have you experienced something like this before?

  4. #4
    Join Date
    Sep 2016
    Posts
    30
    Rep Power
    1

    Default Re: Compile kernel as task not as NDRange

    If you are able to post your code it will help immensely

  5. #5
    Join Date
    Mar 2017
    Posts
    11
    Rep Power
    1

    Default Re: Compile kernel as task not as NDRange

    I recompiled it and now it gets compiled as task.

    thank you.

  6. #6
    Join Date
    Mar 2017
    Posts
    8
    Rep Power
    1

    Default Re: Compile kernel as task not as NDRange

    An alternative to using __attribute__((max_global_work_dim(0))) is also __attribute__((task)) which should also do the same thing

Similar Threads

  1. NDRange Channel Implementation
    By amaier17 in forum OpenCL
    Replies: 4
    Last Post: October 3rd, 2016, 08:54 AM
  2. compile kernel errors
    By zuoliang in forum Linux Forum
    Replies: 1
    Last Post: December 18th, 2006, 06:17 PM
  3. Kernel compile error
    By heing in forum Linux Forum
    Replies: 7
    Last Post: September 27th, 2006, 02:06 PM
  4. More kernel compile problems
    By nipri in forum General Discussion Forum
    Replies: 0
    Last Post: July 20th, 2004, 12:00 PM

Tags for this Thread

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
  •