Giter Club home page Giter Club logo

nvptx-spirv-translator's Introduction

NVPTX-SPIR-V Translator

We implement a translator that support translating NVPTX to SPIR-V. This translator is modified from LLVM-SPIR-V Translator.

Requirements

Here are the environment requirements for building&executing the translators. Using environments with other versions may require modification in source code.

  • Ubuntu 16.0.4
  • LLVM 10.0.1
  • CMake 3.5.1
  • gcc 7.5.0

Build Instructions

git clone https://github.com/gthparch/NVPTX-SPIRV-Translator
mkdir NVPTX-SPIRV-Translator/build
cd NVPTX-SPIRV-Translator/build
cmake .. -DLLVM_DIR=<llvm_build_dir>/lib/cmake/llvm/
make llvm-spirv -j`nproc`

Where llvm_build_dir is the LLVM build directory.

Run Instructions for llvm-spirv

To translate a NVPTX IR (nvptx_input.bc) to a SPIR-V (spirv_output.spv), execute the following command:

llvm-spirv -o spirv_output.spv nvptx_input.bc

We maintain the code for converting SPIR-V to OpenCL IR in the originally translator. To translate a SPIRV IR (spirv_input.spv) to a OpenCL IR (ocl_output.bc), execute the following command:

llvm-spirv -r -o ocl_output.bc spirv_input.spv

nvptx-spirv-translator's People

Contributors

yxsamliu avatar bader avatar alexeysotkin avatar svenvh avatar pierremoreau avatar alexeysachkov avatar vmaksimo avatar aratajew avatar nikitarudenkointel avatar kkyzylova avatar stuartdbrady avatar scottp101 avatar bashbaug avatar ldudziak avatar karolherbst avatar agindinson avatar mrsidims avatar imashkov avatar neildhickey avatar mlychkov avatar turinevgeny avatar zuban32 avatar jigsawecho avatar sergey-semenov avatar echuraev avatar fznamznon avatar raunintc avatar kpet avatar drcut avatar paweljurek avatar

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.