Results 1 to 2 of 2

Thread: OpenCL: Headers [Updated Sep 15 2011]

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,128
    Rep Power
    732

    OpenCL: Headers [Updated Sep 15 2011]

    This post contains maintained headers for OpenCL, usable both for OpenCL 1.0 and OpenCL 1.1 applications.
    It consists of official headers translations, named:
    • opencl.tBasicU
    • cl.tBasicU
    • cl_ext.tBasicU
    • cl_platform.tBasicU
    • cl_gl.tBasicU
    • cl_gl_ext.tBasicU

    Then there are two headers I added for more coding comfort:
    • cl_thinBasic_ext.tBasicU - adds low level functionality
    • cl_thinBasic_highlevel.tBasicU - adds high level functionality for RAD


    The new headers offer multiple advantages over my previous release from past year:
    • OpenCL 1.1 functionality added
    • Pointer parameters in C originals are handled via ByRef in ThinBASIC. If you still want to pass pointer, just use ByVal override.
    • OpenCL types are ported as tCL_* (cl_mem becomes tCL_mem). The original names could not be preserved, as they would collide due to fact ThinBASIC is not case sensitive. I think it is still better than previous long type_cl_ prefix.
    • Constants are ported as they are in C, no % is added, making the adaptation of codes from C originals smoother
    • Some bugs in original translation fixed
    • Extensions changed from Inc to tBasicU

    Important note: Please unzip the attachement to your ThinBASIC/Inc directory.

    I hope the headers serve you well, and wish you all happy GPGPU coding!


    Petr
    Attached Files Attached Files
    Last edited by Petr Schreiber; 15-09-2011 at 11:00.
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

Similar Threads

  1. Latest release [ ODE headers ]
    By Petr Schreiber in forum ODE - Open Dynamics Engine
    Replies: 20
    Last Post: 10-08-2007, 08:39
  2. [Sources] DirectX headers
    By Michael Hartlef in forum Power Basic
    Replies: 10
    Last Post: 26-07-2007, 22:33

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

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