forked from ROCm/AMDMIGraphX
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add remove MIOpen build option (ROCm#3124)
- Loading branch information
1 parent
0ffc4db
commit 99f2260
Showing
19 changed files
with
181 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,6 +63,12 @@ endif() | |
|
||
option(MIGRAPHX_USE_ROCBLAS "Enable MIGraphX to use rocBLAS" ON) | ||
|
||
if(WIN32) | ||
option(MIGRAPHX_USE_MIOPEN "Enable MIGraphX to use MIOpen" OFF) | ||
else() | ||
option(MIGRAPHX_USE_MIOPEN "Enable MIGraphX to use MIOpen" ON) | ||
endif() | ||
|
||
# By default build shared libraries | ||
option(BUILD_SHARED_LIBS "Create shared libraries" ON) | ||
|
||
|
@@ -300,6 +306,7 @@ rocm_enable_cppcheck( | |
MIGRAPHX_MLIR=1 | ||
MIGRAPHX_HAS_EXECUTORS=0 | ||
CPPCHECK=1 | ||
MIGRAPHX_USE_MIOPEN=1 | ||
BUILD_DEV= | ||
__device__= | ||
__host__= | ||
|
@@ -339,6 +346,9 @@ else() | |
set(DEPENDS_HIP_RUNTIME "hip-runtime-amd" ) | ||
endif() | ||
|
||
if(MIGRAPHX_USE_MIOPEN) | ||
list(APPEND PACKAGE_DEPENDS miopen-hip) | ||
endif() | ||
if(MIGRAPHX_USE_ROCBLAS) | ||
list(APPEND PACKAGE_DEPENDS rocblas) | ||
endif() | ||
|
@@ -352,5 +362,5 @@ rocm_create_package( | |
MAINTAINER "AMDMIGraphX Maintainer <[email protected]>" | ||
LDCONFIG | ||
PTH | ||
DEPENDS miopen-hip ${DEPENDS_HIP_RUNTIME} half ${PACKAGE_DEPENDS} | ||
DEPENDS ${DEPENDS_HIP_RUNTIME} half ${PACKAGE_DEPENDS} | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.