summaryrefslogtreecommitdiffhomepage
path: root/example/example_05_nectar_gpu
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2026-03-13 20:19:46 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2026-03-13 20:19:46 +0100
commita0cddce77cbb01479aa115ee63d76b30117e954f (patch)
tree9d5af4bbe693d4083866e6c3cad96210c4cbd6b7 /example/example_05_nectar_gpu
parentaddbf3d987297d3885df28fee7a28548dd5d6e6a (diff)
[CHORE] Fix examples directory and remove previous experimental syntax.HEADdevelop
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'example/example_05_nectar_gpu')
-rw-r--r--example/example_05_nectar_gpu/Jamfile.v214
-rw-r--r--example/example_05_nectar_gpu/example.nc11
2 files changed, 25 insertions, 0 deletions
diff --git a/example/example_05_nectar_gpu/Jamfile.v2 b/example/example_05_nectar_gpu/Jamfile.v2
new file mode 100644
index 0000000..87f2328
--- /dev/null
+++ b/example/example_05_nectar_gpu/Jamfile.v2
@@ -0,0 +1,14 @@
+#
+# File: Jamfile.v2
+# Author: Amlal El Mahrouss,
+# Copyright 2026, Amlal El Mahrouss, Licensed under the Boost Software License
+#
+
+project gpu_example
+: default-build debug
+: <toolset>ptx-necdrv
+;
+
+exe example.o
+ : example.nc ;
+
diff --git a/example/example_05_nectar_gpu/example.nc b/example/example_05_nectar_gpu/example.nc
new file mode 100644
index 0000000..d0a8b72
--- /dev/null
+++ b/example/example_05_nectar_gpu/example.nc
@@ -0,0 +1,11 @@
+// SPDX-License-Identifier: Apache-2.0
+// Copyright 2026, Amlal El Mahrouss (amlal@nekernel.org)
+// Licensed under the Apache License, Version 2.0 (See accompanying
+// file LICENSE or copy at http://www.apache.org/licenses/LICENSE-2.0)
+// Official repository: https://github.com/ne-foss-org/nectar
+
+const main() {
+ const dummy := 0x10;
+ return dummy;
+}
+