Coder Social home page Coder Social logo

oneapi-spack-tests's Introduction

oneapi-spack-tests

REUSE status

The files here test oneapi support in spack. It installs compilers, and uses icpc/icpx/ifort/ifx/g++/gfortran to build programs that use the oneapi libraries and SYCL. It uses a sample package that contains programs that use oneAPI components.

It tests the following:

  • intel-oneapi-* packages as dependencies
  • include directories are accessible
  • library directories are accessible
  • packages provide correct configuration when used as a virtual provider
  • environment variables are set

Install prerequisites for testing:

pip install -r requirements.txt

Setup tests:

# Install and activate spack
git clone https://github.com/spack/spack.git
source spack/share/spack/setup-env.sh
# Add the test packages
spack repo add ./repo
# Install and activate compilers
spack install intel-oneapi-compilers
spack compiler add `spack location -i intel-oneapi-compilers`/compiler/latest/linux/bin/intel64
spack compiler add `spack location -i intel-oneapi-compilers`/compiler/latest/linux/bin

Run all tests:

pytest -s tests

Run pre-commit checks:

pre-commit run --all

The sample applications are in the samples directory. The spack package that downloads/builds/installs the sample applications is in the repo directory.

Adding samples

Add to samples, package.py, and test_packages.py.

Adding to CI

We divided the tests into groups because GitHub Actions runners do not have enough disk space to install all of oneAPI.

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.