summaryrefslogtreecommitdiffhomepage
path: root/example
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2026-03-09 17:48:20 +0100
committerGitHub <noreply@github.com>2026-03-09 17:48:20 +0100
commita31d180295dd2947c63b5ef7303accd88e4ae690 (patch)
treeb4406176c141beea5170693c7872a58f2c035836 /example
parent5f6fae7100e3ad1cc17b46844d18b7f5b0eac3b9 (diff)
parent587943f7e6510078e789155c0c364709c22f4316 (diff)
Merge pull request #69 from ne-foss-org/nectar-gpu-improvements-and-bjam
[CHORE] Adding BJam support for Nectar and using BJam for Nectar GPU
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;
}