-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix hipRAND build with newer rocRAND
- needs to be build now separately while earlier the rocRAND build and installed also the hipRAND - rocRAND needs to be build first as hipRAND depends from the rocRAND - extra existence checks before creating symlinks sdk/rocrand/include and sdk/hiprand/include Signed-off-by: Mika Laitio <[email protected]>
- Loading branch information
Showing
4 changed files
with
23 additions
and
16 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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
BINFO_APP_NAME=hipRAND | ||
BINFO_APP_SRC_SUBDIR_BASENAME= | ||
BINFO_APP_SRC_TOPDIR_BASENAME=${BINFO_APP_NAME} | ||
BINFO_APP_SRC_DIR="${SDK_SRC_ROOT_DIR}/${BINFO_APP_SRC_TOPDIR_BASENAME}" | ||
BINFO_APP_UPSTREAM_REPO_URL=https://github.com/ROCm/hipRAND.git | ||
#use default git tag | ||
#BINFO_APP_UPSTREAM_REPO_VERSION_TAG=rocm-5.7.1 | ||
|
||
CFG_TEMP1=-DAMDGPU_TARGETS="${SEMICOLON_SEPARATED_GPU_TARGET_LIST_DEFAULT}" | ||
|
||
BINFO_APP_CMAKE_CFG="-DCMAKE_INSTALL_PREFIX=${INSTALL_DIR_PREFIX_SDK_ROOT}" | ||
BINFO_APP_CMAKE_CFG="${BINFO_APP_CMAKE_CFG} -DCMAKE_PREFIX_PATH=${INSTALL_DIR_PREFIX_SDK_ROOT}/lib64/cmake;${INSTALL_DIR_PREFIX_SDK_ROOT}/lib/cmake" | ||
BINFO_APP_CMAKE_CFG="${BINFO_APP_CMAKE_CFG} ${CFG_TEMP1}" | ||
BINFO_APP_CMAKE_CFG="${BINFO_APP_CMAKE_CFG} -DCMAKE_C_COMPILER=${SDK_C_COMPILER_DEFAULT}" | ||
BINFO_APP_CMAKE_CFG="${BINFO_APP_CMAKE_CFG} -DCMAKE_CXX_COMPILER=${SDK_CXX_COMPILER_DEFAULT}" | ||
BINFO_APP_CMAKE_CFG="${BINFO_APP_CMAKE_CFG} ${BINFO_APP_SRC_DIR}" | ||
|
||
BINFO_APP_POST_INSTALL_CMD_ARRAY=( | ||
"if [[ -e ${INSTALL_DIR_PREFIX_SDK_ROOT}/include/hiprand && ! -e ${INSTALL_DIR_PREFIX_SDK_ROOT}/hiprand/include ]]; then ln -s ${INSTALL_DIR_PREFIX_SDK_ROOT}/include/hiprand ${INSTALL_DIR_PREFIX_SDK_ROOT}/hiprand/include; fi" | ||
) |
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