An open API service indexing awesome lists of open source software.

https://github.com/vertexwahn/rules_ispc

Bazel rules for Intel Implicit SPMD Program Compiler
https://github.com/vertexwahn/rules_ispc

bazel bazel-rules cpp ispc spmd

Last synced: about 2 months ago
JSON representation

Bazel rules for Intel Implicit SPMD Program Compiler

Awesome Lists containing this project

README

        

[![Support Ukraine](https://img.shields.io/badge/Support-Ukraine-FFD500?style=flat&labelColor=005BBB)](https://opensource.fb.com/support-ukraine)

# Bazel rules for Intel Implicit SPMD Program Compiler (ISPC)

Bazel build rules for [ISPC](https://ispc.github.io/).
Tested on Windows, Linux and macOS.

## Goal

The goal of these rules is to be able to use [ISPC](https://ispc.github.io/) using [Bazel](https://bazel.build/) on Windows,
Linux and macOS without the need to preinstall ISPC.
All the magic to set up ISPC should be done by Bazel with as little effort as possible.

## Quick start

This project uses [Bazel](https://bazel.build/) as a build system.
The current used version of Bazel to test these rules is defined in [.bazelversion](tests/.bazelversion).
It is very likely that these rules work also with other Bazel versions,
since only very basic features are used.

**Prerequisites:**

The following tools should be installed:

- [Git](https://git-scm.com/)
- [Bazel](https://bazel.build/install)
- A C++ compiler (GCC, Visual Studio, Clang, Apple Clang, etc.)

**Checkout, build, and run:**

```shell
git clone https://github.com/Vertexwahn/rules_ispc.git
cd rules_ispc
cd tests
bazel build //square:main
bazel run //square:main
```

## License

This work is published under Apache 2.0 License.