Author Topic: Mac OS X - Offline Compilation Using the OpenCL Compiler  (Read 2135 times)

0 Members and 1 Guest are viewing this topic.

Stefan

  • Global Moderator
  • Hero Member

  • Offline
  • *****

  • 2905
    • View Profile
Mac OS X - Offline Compilation Using the OpenCL Compiler
« on: August 30, 2011, 08:58:42 PM »
Quote
Offline Compilation Using the OpenCL Compiler
Last Revision:   
Version 1.0, 2011-08-23
Demonstrates using the OpenCL offline compiler to produce and utilize bitcode for CPU and GPU devices.
Build Requirements:   
Xcode 4.0 or later, Mac OS X v10.7 or later
Runtime Requirements:   
Mac OS X v10.7 or later

This sample demonstrates how developers can utilize the OpenCL offline compiler to transform their human-readable OpenCL source files into shippable bitcode. It includes an example Makefile that demonstrates how to invoke the compiler, and a self-contained OpenCL program that shows how to build a program from the generated bitcode. The sample covers the case of using bitcode on 64 and 32 bit CPU devices, as well as 32 bit GPU devices.

ljbade

  • NewsPosters
  • Jr. Member

  • Offline
  • *

  • 92
    • View Profile
Re: Mac OS X - Offline Compilation Using the OpenCL Compiler
« Reply #1 on: August 30, 2011, 10:14:15 PM »
I wonder how they handle the different GPU targets? Like NVIDIA, AMD, and the various chip generations that Macs have shipped with over the years.

I wonder if it only compiles it to pseudo-assembly so that it can still recompile to the target chip at run time.