summaryrefslogtreecommitdiffhomepage
path: root/example/example_05_nectar_gpu
diff options
context:
space:
mode:
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;
+}
+