diff options
| -rw-r--r-- | example/example_06_nectar_gpu/example.nc | 8 | ||||
| -rw-r--r-- | src/CompilerKit/src/Compilers/NectarCompiler+AMD64.cpp | 3 | ||||
| -rw-r--r-- | src/CompilerKit/src/Compilers/NectarCompiler+PTX.cpp | 3 |
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; |
