From e31609040915755dc1572c9b478d3b5a49e11e27 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Sun, 26 Oct 2025 13:46:27 +0100 Subject: Adding dangling changes from slowly moving to SYCL USM 2020 And other random stuff --- examples/planetary_3d/.nix/derivation.nix | 39 +++++++++++++++++++++++++++++++ examples/planetary_3d/planetary_3d.cpp | 27 +++++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 examples/planetary_3d/.nix/derivation.nix create mode 100644 examples/planetary_3d/planetary_3d.cpp (limited to 'examples/planetary_3d') diff --git a/examples/planetary_3d/.nix/derivation.nix b/examples/planetary_3d/.nix/derivation.nix new file mode 100644 index 0000000..c6c3ea6 --- /dev/null +++ b/examples/planetary_3d/.nix/derivation.nix @@ -0,0 +1,39 @@ +{ lib +, stdenv +, scons +, clang-tools +, forstio +, pname +, version +, kel-lbm +}: + +stdenv.mkDerivation { + pname = pname + "-examples-" + "planetary_3d"; + inherit version; + src = ./..; + + nativeBuildInputs = [ + scons + clang-tools + ]; + + buildInputs = [ + forstio.core + forstio.async + forstio.io + forstio.io_codec + forstio.codec + forstio.codec-unit + forstio.codec-json + forstio.remote + forstio.remote-filesystem + forstio.remote-sycl + forstio.remote-io + kel-lbm + ]; + + preferLocalBuild = true; + + outputs = [ "out" "dev" ]; +} diff --git a/examples/planetary_3d/planetary_3d.cpp b/examples/planetary_3d/planetary_3d.cpp new file mode 100644 index 0000000..e100f48 --- /dev/null +++ b/examples/planetary_3d/planetary_3d.cpp @@ -0,0 +1,27 @@ +#include +#include + +namespace kel { + +saw::error_or real_main(int argc, char** argv){ + return saw::make_void(); +} +} + +int main(int argc, char** argv){ + auto eov = kel::kel_main(argc, argv); + if(eov.is_error()){ + auto& err = eov.get_error(); + auto err_msg = err.get_message(); + std::cerr<<"[Error]: "<