Removing UnitTest as install, removing unused env var (#231)

Esse commit está contido em:
gilbertlee-amd
2020-07-10 09:30:28 -06:00
commit de GitHub
commit f87ba17737
3 arquivos alterados com 1 adições e 17 exclusões
+1 -1
Ver Arquivo
@@ -178,7 +178,7 @@ fi
# Optionally, run tests if they're enabled.
if ($run_tests); then
if (test -f "./test/UnitTests"); then
HSA_FORCE_FINE_GRAIN_PCIE=1 ./test/UnitTests
./test/UnitTests
else
echo "Unit tests have not been built yet; please re-run script with -t to build unit tests."
exit 1
-9
Ver Arquivo
@@ -56,15 +56,6 @@ if(BUILD_TESTS)
add_executable(UnitTests ${TEST_SOURCES})
target_include_directories(UnitTests PRIVATE /opt/rocm)
target_link_libraries(UnitTests PRIVATE gtest_main PRIVATE rccl)
install(TARGETS UnitTests RUNTIME DESTINATION test)
# HCC adds /opt/rocm/lib as RPATH, even though the install process is supposed to
# remove RPATH. As a work-around, set the correct RPATH for the unit test executable
# as a post-install step
install(
CODE
"execute_process(COMMAND chrpath -r ${CMAKE_INSTALL_PREFIX}/lib:/opt/rocm/lib ${CMAKE_INSTALL_PREFIX}/test/UnitTests)"
)
else()
message("Not building unit tests")
endif()
-7
Ver Arquivo
@@ -175,13 +175,6 @@ namespace CorrectnessTests
// This code is called per test-tuple
void SetUp() override
{
// Check for fine-grained env variable (otherwise will hang)
if (!getenv("HSA_FORCE_FINE_GRAIN_PCIE"))
{
printf("Must set HSA_FORCE_FINE_GRAIN_PCIE=1 prior to execution\n");
exit(0);
}
// Make the test tuple parameters accessible
std::tie(op, dataType, numElements, numDevices, inPlace, envVals) = GetParam();