-
Notifications
You must be signed in to change notification settings - Fork 86
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
Clang transpiler integration #756
Clang transpiler integration #756
Conversation
… buildIncludes implementation
cmake -DOCCA_CLANG_BASED_TRANSPILER=ON worked for me to get the new transpiler source and generate the build. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kris-rowe, with this initial pass I think it's ready for you and others to take a look. I have tested a successful compilation of OCCA with this cmake option turned on, and without the option enabled it should have no effect. Please let us know if you can think of any other tests or changes to have, otherwise having this in would help us proceed with our new okl kernel development. Thanks!
Hi - Any hope that this gets merged? |
Please take a look at this issue. |
@kris-rowe the issue is addressed, please take a look and try the fix. |
@kris-rowe all issues were addressed, can we please have a conclusion on this? |
Hi @kris-rowe |
Hi @IuriiKobein, I am planning to test this branch soon. I will let you know if I run into any issues. |
@IuriiKobein : I added a simple kernel which calculates the dot product between two |
@thilinarmtb please refer the issue reported above for clarification. |
Is transpiler version 2 is the same as regular OCCA? Seems like unsigned
We will continue the discussion there till the issue is resolved. |
I am fine with merging this. I can add a few more tests after the PR gets merged. Below are a Probably we should figure out the minimum versions of Also, it is worth mentioning that you have to build clang and the occa-transpiler using the same |
Hi @thilinarmtb |
@IuriiKobein : Thank you very much for the changes. I will merge the PR once the tests pass. |
Hi @thilinarmtb @kris-rowe |
I realized that the |
@thilinarmtb could you please test default compiler flags from OCCA cmake on CI? -- C flags : -Wall -Wextra -Wunused-function -Wunused-variable -Wwrite-strings -Wfloat-equal -Wcast-align -Wlogical-op -Wshadow -Wno-c++11-long-long -O3 -DNDEBUG |
@IuriiKobein : It worked. But it takes about 18 minutes to build OCCA with transpiler |
I appreciate it if you could handle this approach. BTW on average machine with 16 logical i7 cores it takes about 3 minutes so it is a little bit of suprise why on CI it is in times slower. |
My build using 16 parallel processes failed in GitHub CI. I tried both 8 and 4 processes I will open a few minor issues on |
Issues are fixed and PR is updated. |
Thanks @IuriiKobein. I will go ahead with the |
Hi @thilinarmtb |
@IuriiKobein : I created this PR against your branch to link |
Thanks @thilinarmtb. |
I pushed a commit adding the link. Also, should we refer to it as |
Folks, anything missing to get that PR in before year end? |
…rary Link occa-transpiler as a library
Description
This pull request is aimed for integration occa-transpiler library for providing full C++ support under the OCCA
Added:
option for switching between old & new transpiler transpiler-version