[test additional commit] Adding OpenMP Kernels + explicitly load libomp.so#432
[test additional commit] Adding OpenMP Kernels + explicitly load libomp.so#432Vipul-Cariappa wants to merge 13 commits intocompiler-research:mainfrom
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #432 +/- ##
==========================================
- Coverage 81.94% 81.94% -0.01%
==========================================
Files 21 21
Lines 853 864 +11
Branches 87 91 +4
==========================================
+ Hits 699 708 +9
- Misses 154 156 +2
🚀 New features to boost your workflow:
|
|
Hey @Vipul-Cariappa , thanks a lot for this ! I'll take out some time soon to go through this. Initial thoughts
Now for any specific use case like this if we have 6 more kernels coming in, that would be an insane amount of kernels to maintain. We already expect cuda, out-of-process, debugger enabled kernels to land ... and any other python-interop, clad etc kernels in future. I think for a specific functionality use case, we should just present our best kernel forward. One with the latest C++ version. I'm guessing @JohanMabille & @SylvainCorlay would also agree to the same ?! |
|
@anutosh491 This PR is not one that is supposed to be merged in. It is just to test an additional commit on top of my existing PR #389 which had been open for a while now. |
|
@mcbarton why are the OSX tests failing? Doesn't it pass on your local machine? |
|
those were just some thoughts ;) |
No the test doesn't pass locally for me on osx. |
3909d3a to
42415e6
Compare
| // FIXME: We should process the kernel input options and conditionally pass | ||
| // the gpu args here. | ||
| return Cpp::CreateInterpreter(ClangArgs/*, {"-cuda"}*/); | ||
| Cpp::TInterp_t res = Cpp::CreateInterpreter(ClangArgs /*, {"-cuda"}*/); |
There was a problem hiding this comment.
warning: no header providing "Cpp::CreateInterpreter" is directly included [misc-include-cleaner]
Cpp::TInterp_t res = Cpp::CreateInterpreter(ClangArgs /*, {"-cuda"}*/);
^| // FIXME: We should process the kernel input options and conditionally pass | ||
| // the gpu args here. | ||
| return Cpp::CreateInterpreter(ClangArgs/*, {"-cuda"}*/); | ||
| Cpp::TInterp_t res = Cpp::CreateInterpreter(ClangArgs /*, {"-cuda"}*/); |
There was a problem hiding this comment.
warning: no header providing "Cpp::TInterp_t" is directly included [misc-include-cleaner]
Cpp::TInterp_t res = Cpp::CreateInterpreter(ClangArgs /*, {"-cuda"}*/);
^
src/xinterpreter.cpp
Outdated
| ) | ||
| != ClangArgs.end()) | ||
| { | ||
| Cpp::LoadLibrary("libomp"); |
There was a problem hiding this comment.
warning: no header providing "Cpp::LoadLibrary" is directly included [misc-include-cleaner]
Cpp::LoadLibrary("libomp");
^…p to native conda environment
Add export LD_LIBRARY_PATH="$CONDA_PREFIX/lib/:$LD_LIBRARY_PATH" to ci
48c7b41 to
5f77a23
Compare
| // FIXME: We should process the kernel input options and conditionally pass | ||
| // the gpu args here. | ||
| return Cpp::CreateInterpreter(ClangArgs/*, {"-cuda"}*/); | ||
| Cpp::TInterp_t res = Cpp::CreateInterpreter(ClangArgs /*, {"-cuda"}*/); |
There was a problem hiding this comment.
warning: no header providing "CppImpl::CreateInterpreter" is directly included [misc-include-cleaner]
Cpp::TInterp_t res = Cpp::CreateInterpreter(ClangArgs /*, {"-cuda"}*/);
^| // FIXME: We should process the kernel input options and conditionally pass | ||
| // the gpu args here. | ||
| return Cpp::CreateInterpreter(ClangArgs/*, {"-cuda"}*/); | ||
| Cpp::TInterp_t res = Cpp::CreateInterpreter(ClangArgs /*, {"-cuda"}*/); |
There was a problem hiding this comment.
warning: no header providing "CppImpl::TInterp_t" is directly included [misc-include-cleaner]
Cpp::TInterp_t res = Cpp::CreateInterpreter(ClangArgs /*, {"-cuda"}*/);
^
src/xinterpreter.cpp
Outdated
| ) | ||
| != ClangArgs.end()) | ||
| { | ||
| Cpp::LoadLibrary("libomp"); |
There was a problem hiding this comment.
warning: no header providing "CppImpl::LoadLibrary" is directly included [misc-include-cleaner]
Cpp::LoadLibrary("libomp");
^5f77a23 to
a1c7a3a
Compare
remove the need to set env var PATH & LD_LIBRARY_PATH for omp kernels
a1c7a3a to
ebb4f8e
Compare
| ) | ||
| != ClangArgs.end()) | ||
| { | ||
| if (!Cpp::LoadLibrary("libomp")) |
There was a problem hiding this comment.
warning: no header providing "CppImpl::LoadLibrary" is directly included [misc-include-cleaner]
if (!Cpp::LoadLibrary("libomp"))
^| { | ||
| if (!Cpp::LoadLibrary("libomp")) | ||
| { | ||
| std::cerr << "Failed to load libomp)" << std::endl; |
There was a problem hiding this comment.
warning: do not use 'std::endl' with streams; use '\n' instead [performance-avoid-endl]
| std::cerr << "Failed to load libomp)" << std::endl; | |
| std::cerr << "Failed to load libomp)" << '\n'; |
No description provided.