zeratax / yacx

Yet Another CudaExecutor - wrapper to easily compile and execute cuda kernels
https://zeratax.github.io/yacx
MIT License
8 stars 4 forks source link

add nix-shell #165

Closed zeratax closed 4 years ago

zeratax commented 4 years ago

if you're on nixos or you have the nix package manager installed you should be able to just activate this nix-shell with

$ nix-shell

and then you should be in an environment with cuda and jdk directly able to develop

buildFHSUserEnv provides a way to build and run FHS-compatible lightweight sandboxes. It creates an isolated root with bound /nix/store, so its footprint in terms of disk space needed is quite small. This allows one to run software which is hard or unfeasible to patch for NixOS -- 3rd-party source trees with FHS assumptions, games distributed as tarballs, software with integrity checking and/or external self-updated binaries. It uses Linux namespaces feature to create temporary lightweight environments which are destroyed after all child processes exit, without root user rights requirement.

I've additionally had to fix some stuff in the shell script and examples CMake file