GithubHelp home page GithubHelp logo

enshao / level-zero Goto Github PK

View Code? Open in Web Editor NEW

This project forked from oneapi-src/level-zero

0.0 1.0 0.0 787 KB

oneAPI Level Zero Specification Headers and Loader

Home Page: https://spec.oneapi.com/versions/latest/elements/l0/source/index.html

License: MIT License

CMake 0.58% Dockerfile 0.01% C 26.74% C++ 60.18% Python 12.50%

level-zero's Introduction

oneAPI Level Zero

This repository contains the following components of oneAPI:

  • Copies of the Level Zero Specification API C/C++ header files
  • Level Zero Loader
  • Level Zero Validation Layer

This project is part of the larger oneAPI project. See Contributing below for details about submitting issues and pull requests.

oneAPI Specification: https://spec.oneapi.com/versions/latest/introduction.html

oneAPI Level Zero Specification: https://spec.oneapi.com/level-zero/1.0.4/index.html

The versions of the Level Zero API are listed in the file ze_api.h in the ze_api_version_t enum.

Building and Installing

Project is defined using CMake.

Linux

General

mkdir build
cd build
cmake ..
cmake --build . --config Release
cmake --build . --config Release --target package
cmake --build . --config Release --target install

Ubuntu with Docker

mkdir build
mkdir -p .ccache

docker run \
  --rm \
  -v $PWD:$PWD \
  -w $PWD/build \
  -e CCACHE_DIR=$PWD/.ccache \
  -e CCACHE_BASEDIR=$PWD \
  $(docker build -q \
      --build-arg UID=$(id -u) \
      --build-arg GID=$(id -g) \
      --build-arg IMAGE_VERSION=eoan \
      - < docker/build-ubuntu.Dockerfile) \
  cmake \
    -G Ninja \
    -D CMAKE_C_COMPILER_LAUNCHER=ccache \
    -D CMAKE_CXX_COMPILER_LAUNCHER=ccache \
    -D CMAKE_BUILD_TYPE=Release \
    ..

docker run \
  --rm \
  -v $PWD:$PWD \
  -w $PWD/build \
  -e CCACHE_DIR=$PWD/.ccache \
  -e CCACHE_BASEDIR=$PWD \
  $(docker build -q \
      --build-arg UID=$(id -u) \
      --build-arg GID=$(id -g) \
      --build-arg IMAGE_VERSION=eoan \
      - < docker/build-ubuntu.Dockerfile) \
  cmake --build . --config Release

Contributing

We encourage anyone who wants to contribute to submit Issues and Pull Requests. We will help review these for proper alignment with the Level Zero Specification.

Specific coding conventions and standards guidelines are a work-in-progress, and we will post them here soon.

level-zero's People

Contributors

againull avatar bmyates avatar jablonskimateusz avatar jbeich avatar jchodor avatar jemale avatar jitendrasharma1989 avatar lisanna-dettwyler avatar nrspruit avatar rscohn2 avatar rwmcguir avatar

Watchers

 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.