summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2026-03-07 05:27:05 +0100
committerGitHub <noreply@github.com>2026-03-07 05:27:05 +0100
commit7c7671047a8f43166922491d942067a4ae0f53f6 (patch)
tree528813829a5b14c3b1ec74935801fdf5dd625ecd
parent7cfd0aa54b9ed579887de0e3baf0eb9189087982 (diff)
parent4b1fa0627812e854c8bba2200dd2d8d439e80bbb (diff)
Merge pull request #62 from ne-foss-org/nectar-gpu-example-update
[CHORE] Update example.nc
-rw-r--r--example/example_06_nectar_gpu/example.nc8
-rw-r--r--src/CompilerKit/src/Compilers/NectarCompiler+AMD64.cpp3
-rw-r--r--src/CompilerKit/src/Compilers/NectarCompiler+PTX.cpp3
3 files changed, 6 insertions, 8 deletions
diff --git a/example/example_06_nectar_gpu/example.nc b/example/example_06_nectar_gpu/example.nc
index d21003c..34db3f9 100644
--- a/example/example_06_nectar_gpu/example.nc
+++ b/example/example_06_nectar_gpu/example.nc
@@ -1,7 +1,11 @@
-extern palloc; // parallel alloc
+extern palloc;
const main() {
- palloc(0, 0, 0);
+ let type := 0;
+ let sz := 0;
+ let align := 0;
+
+ const ptr := palloc(type, sz, align);
return 0;
}
diff --git a/src/CompilerKit/src/Compilers/NectarCompiler+AMD64.cpp b/src/CompilerKit/src/Compilers/NectarCompiler+AMD64.cpp
index adc5d55..1dbf5ba 100644
--- a/src/CompilerKit/src/Compilers/NectarCompiler+AMD64.cpp
+++ b/src/CompilerKit/src/Compilers/NectarCompiler+AMD64.cpp
@@ -440,9 +440,6 @@ CompilerKit::SyntaxLeafList::SyntaxLeaf CompilerFrontendNectarAMD64::Compile(
break;
accept_func: {
- if (kFunctionEmbedLevel > 0)
- CompilerKit::Detail::print_error("Clojures are a work in progress feature.", file);
-
CompilerKit::STLString symbol_name_fn = text;
size_t indexFnName = 0;
diff --git a/src/CompilerKit/src/Compilers/NectarCompiler+PTX.cpp b/src/CompilerKit/src/Compilers/NectarCompiler+PTX.cpp
index 69c2089..b6961c2 100644
--- a/src/CompilerKit/src/Compilers/NectarCompiler+PTX.cpp
+++ b/src/CompilerKit/src/Compilers/NectarCompiler+PTX.cpp
@@ -455,9 +455,6 @@ CompilerKit::SyntaxLeafList::SyntaxLeaf CompilerFrontendNectarPTX::Compile(
break;
accept_func: {
- if (kFunctionEmbedLevel > 0)
- CompilerKit::Detail::print_error("Clojures are a work in progress feature.", file);
-
CompilerKit::STLString symbol_name_fn = text;
size_t indexFnName = 0;