summaryrefslogtreecommitdiffhomepage
path: root/example/example_06_nectar_gpu
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2026-03-09 06:46:03 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2026-03-09 06:46:03 +0100
commit6156f8f0c8129292a4743cf33d28278fbae4432b (patch)
tree563e601b333bd6b2de82d49b0ca184fde0aa119d /example/example_06_nectar_gpu
parent5f6fae7100e3ad1cc17b46844d18b7f5b0eac3b9 (diff)
[CHORE] Adding BJam support for Nectar and using BJam for Nectar GPU example.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'example/example_06_nectar_gpu')
-rw-r--r--example/example_06_nectar_gpu/Jamfile.v214
-rw-r--r--example/example_06_nectar_gpu/example.nc10
2 files changed, 16 insertions, 8 deletions
diff --git a/example/example_06_nectar_gpu/Jamfile.v2 b/example/example_06_nectar_gpu/Jamfile.v2
new file mode 100644
index 0000000..87f2328
--- /dev/null
+++ b/example/example_06_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_06_nectar_gpu/example.nc b/example/example_06_nectar_gpu/example.nc
index 34db3f9..5c9760b 100644
--- a/example/example_06_nectar_gpu/example.nc
+++ b/example/example_06_nectar_gpu/example.nc
@@ -1,11 +1,5 @@
-extern palloc;
-
const main() {
- let type := 0;
- let sz := 0;
- let align := 0;
-
- const ptr := palloc(type, sz, align);
- return 0;
+ const dummy := 0x10;
+ return dummy;
}