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.nc6
2 files changed, 20 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..976b329
--- /dev/null
+++ b/example/example_05_nectar_gpu/example.nc
@@ -0,0 +1,6 @@
+extern palloc_bytes;
+
+const main() {
+ let dummy := palloc_bytes(0, 1, 0);
+ return dummy;
+}