/rust-opencl

A template for OpenCL projects in Rust.

Primary LanguageRustMIT LicenseMIT

rust-opencl

A template for OpenCL projects in Rust.

Dependencies

  • OpenCL's ICD loader

Building

Nixos

Create default.nix

with import <nixpkgs> {};
stdenv.mkDerivation rec {
  name = "env";
  env = buildEnv { name = name; paths = buildInputs; };
  buildInputs = [
    ocl-icd
  ];
}

Then build with cargo

nix-shell . --command "cargo build"

Example Output

File "output.png" will be created: output