-
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.
SWDEV-308763 - Update hiprtc tests to link with hiprtc lib (ROCm#2575)
hiprtc is made into a separate lib and hence tests should link with it explicitly during compilation Also, updates the hiprtc programming guide Change-Id: Ie1f9d7250d4a8622b77ef92938fc0decbaeb72f9
- Loading branch information
Showing
4 changed files
with
23 additions
and
7 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 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 |
---|---|---|
@@ -1,16 +1,23 @@ | ||
# AMD Tests | ||
# Common Tests - Test independent of all platforms | ||
set(TEST_SRC | ||
saxpy.cc | ||
warpsize.cc | ||
) | ||
|
||
# AMD only tests | ||
set(AMD_TEST_SRC | ||
customOptions.cc | ||
) | ||
|
||
if(HIP_PLATFORM MATCHES "nvidia") | ||
hip_add_exe_to_target(NAME RTC | ||
TEST_SRC ${TEST_SRC} | ||
TEST_TARGET_NAME build_tests | ||
LINKER_LIBS nvrtc) | ||
elseif(HIP_PLATFORM MATCHES "amd") | ||
set(TEST_SRC ${TEST_SRC} ${AMD_TEST_SRC}) | ||
hip_add_exe_to_target(NAME RTC | ||
TEST_SRC ${TEST_SRC} | ||
TEST_TARGET_NAME build_tests) | ||
TEST_TARGET_NAME build_tests | ||
LINKER_LIBS hiprtc) | ||
endif() |
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