Giter Club home page Giter Club logo

hsail-tools's Introduction

HSAIL-Tools

OVERVIEW

HSAIL-Tools are used for parsing, assembling, and disassembling HSAIL.

The following components are provided:

  • libHSAIL is the main library.
  • libHSAIL-AMD is the library with AMD HSAIL extensions.
  • HSAILAsm is command-line interface to libHSAIL.

The following branches are currently used:

  • master branch has libHSAIL for HSA PRM 1.0 (Final) specification.
  • hsail1.0p branch has libHSAIL for HSAIL 1.0 Provisional specification.

BUILD PREREQUISITES

libHSAIL requires the following components:

  • CMake
  • libelf (if BUILD_WITH_LIBBRIGDWARF=1)
  • libdwarf (if BUILD_WITH_LIBBRIGDWARF=1)
  • LLVM (only Support and Object libraries, if BUILD_HSAILASM=1)
  • perl
  • re2c

libHSAIL CMake build will automatically find these dependencies if installed.

libHSAIL itself can be built without debug support and does not require libdwarf in this case.

BUILD (general)

We recommend to use out-of-source CMake build and create separate directory to run CMake.

To build libHSAIL without libBRIGDwarf (no debug support), specify -DBUILD_WITH_LIBBRIGDWARF=0 option to CMake.

To avoid building HSAILAsm, specify -DBUILD_HSAILASM=0 option to CMake.

BUILD (Linux)

mkdir -p build/lnx64
cd build/lnx64
cmake ../..
make -j

On modern Linux distributions libHSAIL dependencies are typically provided by the distribution. For example, the following command can be used to install them on Ubuntu 14.04 system:

sudo apt-get install cmake libdwarf-dev libelf-dev llvm-dev ncurses-dev re2c perl

Building on Linux requires GCC 4.4+.

On Linux, CMake normally finds all dependencies automatically. However, it is also possible to override it (see, for example, scripts in bin/ subdirectory).

BUILD (Windows)

Building on Windows requires MSVC (Visual Studio 2012 Update 4 or later).

CMake command line should specify compiler configuration:

md build/win64
cd build/win64
cmake -G "Visual Studio 11 2012 Win64" ...

CMake will attempt to locate corresponding compiler and generate Visual Studio solution file which can be opened and built in Visual Studio.

For Windows, it is possible to obtain dependencies from corresponding software sources:

On Windows, cmake command line additionally might need to include the location of dependencies. Refer to scripts in bin/ subdirectory for an example how to specify them.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.