Clone wiki

Geometric Algebra Raytracer / Home

A raytracer application using Geometric Algebra (with Gaalop Precompiler) and C++ AMP

1 Installation Guide (for Linux Ubuntu 14.04 LTS)

To install the entire environment you need to install the HSA foundations 'Clamp' driver to interpretate C++ AMP code on linux based operating systems. Furhter on you need to download and install GAALOP Precompiler. Please follow the next steps to set up your system.

My demo system contains:

  • AMD Athlon(tm) 64 X2 Dual Core Processor 4200+ × 2
  • AMD Radeon HD 5450 1GB
  • 4 GB of RAM
  • Ubuntu 14.04 LTS 64-Bit OS

1.1 Install HSAs Clamp driver for C++ AMP (how it worked for me...)

Download and install the following files from HSA Drivers hosting page: https://bitbucket.org/multicoreware/cppamp-driver-ng/wiki/Home

  • libcxxamp-0.4.0-hsa-milestone3-Linux.deb
  • clamp-0.4.0-hsa-milestone3-Linux.deb

You can use Ubuntu Software Center to install the debian files. After installing the files you need to set up a working OpenCL environment on your system. In my case I downloaded for that the AMDAPPSDK-2.9-1 from http://developer.amd.com/tools-and-sdks/opencl-zone/amd-accelerated-parallel-processing-app-sdk/ Note: don't choose a beta version. Once downloaded install the OpenCL environment to location /opt/<your sdk folder> Then you need to extend your config file /etc/ld.so.conf with the following:

# C++AMP runtime libraries
# libc++ & C++AMP runtime implementations
/opt/clamp/lib

# OpenCL runtime (libOpenCL.so)
/opt/<your sdk folder>/lib/x86_64

How to verify if C++ AMP works on your Linux station

You can verify if the HSA compiler works on your PC if you do the following steps:

1.2 Install GaalopPrecompiler

Stay tuned... more 2 come

Updated