-
Notifications
You must be signed in to change notification settings - Fork 128
Enable static build of migraphx #4817
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
base: develop
Are you sure you want to change the base?
Changes from 4 commits
e3ff6f8
4ddc5d6
7ceac6a
6ec09c9
ed0ce09
9dcb64d
47affde
6c6f2c4
8447684
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 | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -258,7 +258,7 @@ function(add_embed_library EMBED_NAME) | |||||||||||||||
| target_sources(${INTERNAL_EMBED_LIB} PRIVATE ${OUTPUT_FILES}) | ||||||||||||||||
| endif() | ||||||||||||||||
| target_include_directories(${INTERNAL_EMBED_LIB} PRIVATE "${EMBED_DIR}/include") | ||||||||||||||||
| target_compile_options(${INTERNAL_EMBED_LIB} PRIVATE -Wno-reserved-identifier -Wno-extern-initializer -Wno-missing-variable-declarations) | ||||||||||||||||
| target_compile_options(${INTERNAL_EMBED_LIB} PRIVATE -Wno-reserved-identifier -Wno-extern-initializer -Wno-missing-variable-declarations -Wno-c++11-narrowing) | ||||||||||||||||
|
||||||||||||||||
| target_compile_options(${INTERNAL_EMBED_LIB} PRIVATE -Wno-reserved-identifier -Wno-extern-initializer -Wno-missing-variable-declarations -Wno-c++11-narrowing) | |
| target_compile_options(${INTERNAL_EMBED_LIB} PRIVATE | |
| -Wno-reserved-identifier | |
| -Wno-extern-initializer | |
| -Wno-missing-variable-declarations | |
| $<$<AND:$<COMPILE_LANGUAGE:CXX>,$<CXX_COMPILER_ID:Clang>>:-Wno-c++11-narrowing> | |
| ) |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -198,6 +198,8 @@ add_library(migraphx_gpu | |||||
| ${MIOPEN_SRCS} | ||||||
| ) | ||||||
|
|
||||||
| enable_static_init(migraphx_gpu) | ||||||
|
|
||||||
| set_target_properties(migraphx_gpu PROPERTIES EXPORT_NAME gpu) | ||||||
| migraphx_generate_export_header(migraphx_gpu) | ||||||
|
|
||||||
|
|
@@ -406,7 +408,7 @@ add_subdirectory(hiprtc) | |||||
|
|
||||||
| rocm_install_targets( | ||||||
| PRIVATE | ||||||
| TARGETS migraphx_gpu migraphx_device compile_for_gpu | ||||||
| TARGETS migraphx_gpu migraphx_device compile_for_gpu migraphx_kernels | ||||||
|
||||||
| TARGETS migraphx_gpu migraphx_device compile_for_gpu migraphx_kernels | |
| TARGETS migraphx_gpu migraphx_device compile_for_gpu |
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.
BUILD_SHARED_LIBSis declared twice in the top-level CMakeLists (once near the top and again here). Having duplicateoption(BUILD_SHARED_LIBS ...)definitions can lead to confusing/help-text mismatches and makes it unclear which one is authoritative; consider keeping a singleoption()definition and removing the duplicate.