From bcb5f57f14cd160fd2a77d91e1f606f702b17852 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Sat, 7 Mar 2026 05:21:15 +0100 Subject: [CHORE] Update example.nc Signed-off-by: Amlal El Mahrouss --- example/example_06_nectar_gpu/example.nc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 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; } -- cgit v1.2.3 From 4b1fa0627812e854c8bba2200dd2d8d439e80bbb Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Sat, 7 Mar 2026 05:23:38 +0100 Subject: [FIX] Remove clojure error. Signed-off-by: Amlal El Mahrouss --- src/CompilerKit/src/Compilers/NectarCompiler+AMD64.cpp | 3 --- src/CompilerKit/src/Compilers/NectarCompiler+PTX.cpp | 3 --- 2 files changed, 6 deletions(-) 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; -- cgit v1.2.3