-
Notifications
You must be signed in to change notification settings - Fork 294
Fix/rhel10omp #1114
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
Fix/rhel10omp #1114
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -215,21 +215,15 @@ target_compile_options(rocsparse-bench PRIVATE -Wno-deprecated -Wno-unused-comma | |
| # Internal common header | ||
| target_include_directories(rocsparse-bench PRIVATE $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../include>) | ||
|
|
||
| # Add OpenMP if available | ||
| apply_omp_settings(rocsparse-bench) | ||
|
|
||
| # Target link libraries | ||
| target_link_libraries(rocsparse-bench PRIVATE roc::rocsparse hip::host hip::device) | ||
| target_link_libraries(rocsparse-bench PRIVATE roc::rocsparse hip::host hip::device ${ROCSPARSE_CLIENT_LIBS}) | ||
| if (rocsparseio_FOUND) | ||
| target_link_libraries(rocsparse-bench PRIVATE roc::rocsparseio) | ||
| endif() | ||
|
|
||
| # Add OpenMP if available | ||
| if(OPENMP_FOUND) | ||
| if (NOT WIN32) | ||
| target_link_libraries(rocsparse-bench PRIVATE OpenMP::OpenMP_CXX -Wl,-rpath=${HIP_CLANG_ROOT}/lib) | ||
| else() | ||
| target_link_libraries(rocsparse-bench PRIVATE libomp) | ||
| endif() | ||
| endif() | ||
|
|
||
|
Comment on lines
-219
to
-232
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This broke building rocSPARSE on Windows as amd-llvm doesn't provide OpenMP on Windows. See #1173.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks. Possible fixing PR #1373
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh I see you already have a PR #1352. Ill close mine. |
||
| if (NOT WIN32) | ||
| if (BUILD_WITH_ROCTX) | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.