summaryrefslogtreecommitdiffhomepage
path: root/example
diff options
context:
space:
mode:
Diffstat (limited to 'example')
-rw-r--r--example/example_05_asm_gpu/.keep0
-rw-r--r--example/example_06_nectar_gpu/Jamfile.v214
-rw-r--r--example/example_06_nectar_gpu/example.nc10
3 files changed, 16 insertions, 8 deletions
diff --git a/example/example_05_asm_gpu/.keep b/example/example_05_asm_gpu/.keep
deleted file mode 100644
index e69de29..0000000
--- a/example/example_05_asm_gpu/.keep
+++ /dev/null
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;
}