-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add more tests for clang transpiler #7
base: clang_transpiler_integration
Are you sure you want to change the base?
Add more tests for clang transpiler #7
Conversation
6a64c51
to
bfa53b3
Compare
@thilinarmtb according to the log error occurs in OCCA itself. The new transpiler is a separate library.. occa/include/occa/dtype/builtins.hpp Line 14 in 7f82ac6
Also you could confirm it by using legacy bultin OCCA transpiler by removing transpiler version option from JSON properly. |
@YuraCobain, with the following diff (to enable original OCCA), the original OCCA passes the test. diff --git a/examples/cpp/31_oklt_v3_moving_avg/main.cpp b/examples/cpp/31_oklt_v3_moving_avg/main.cpp
index 538f85c6..b5e594bb 100644
--- a/examples/cpp/31_oklt_v3_moving_avg/main.cpp
+++ b/examples/cpp/31_oklt_v3_moving_avg/main.cpp
@@ -124,11 +124,11 @@ int main(int argc, const char **argv) {
occa::device device(deviceOpts);
occa::json buildProps({
- {"transpiler-version", 3}
+ // {"transpiler-version", 3}
});
int failure = 0;
- failure |= runMovingAverageTest(device, buildProps);
+ // failure |= runMovingAverageTest(device, buildProps);
failure |= runVectorDotTest(device, buildProps);
return failure;
diff --git a/examples/cpp/31_oklt_v3_moving_avg/vectorDot.okl b/examples/cpp/31_oklt_v3_moving_avg/vectorDot.okl
index becf10a7..e1251641 100644
--- a/examples/cpp/31_oklt_v3_moving_avg/vectorDot.okl
+++ b/examples/cpp/31_oklt_v3_moving_avg/vectorDot.okl
@@ -1,4 +1,4 @@
-#include "constants.h"
+#define THREADS_PER_BLOCK 1024
@kernel void vectorDot(double *temp, const unsigned int n, const double *a,
const double *b) { PS: For some reason, it was unable to find |
I see, the root cause is probably due to legacy transpiler transform this data type in JSON for launch and kernel into something that is mapped in file I shared with you. |
Hi @thilinarmtb The root cause is found.
So there are two ways to fix it:
I prefer option 1 because both problems are coupled and related to OCCA core itself not new transpiler. |
@IuriiKobein : Thank you for checking it ! Seems like this issue is fixed for Maybe we can do the same for |
Ok, I fix missing mapping on 'unsigned int'. |
@thilinarmtb the fix is pushed in scope of the PR. |
Hi @thilinarmtb |
@YuraCobain @IuriiKobein : I can run the test successfully with the latest fix. |
@thilinarmtb greate news. Are we ready to merge the PR? |
I will add my comments in the other PR. |
Description
I get the following error when the
vectorDot()
kernel is run.I think OCCA supports
unsigned int
(I may be wrong). I am assuming this is atranspiler issue since the error is from the transpiler).