Граф коммитов

18 Коммитов

Автор SHA1 Сообщение Дата
jiabaxie 43818d733a Cleaned up error messages for HipEnvVarDriver test (#1825)
There were several error messages that appeared even if the hipEnvVarDriver.exe test passes and executes successfully. Now it is cleaned up. The following are those instances:

* When popen searches for directed_test directory but does not find it, it outputs an error, then finds the hipEnvVar at the same level. Currently the fix will prompt the test to only output an error if both searches for hipEnvVar fails.
* When assertion is used towards the later half of the test, conditions were set to specifically hide the devices, resulting in No Hip Device detected in the latter half of the test. The fix will make these errors not appear as they are intended to not find any devices. Assertions themselves are untouched.

HipEnvVarDriver.cpp has also been refactored. Reading HipEnvVar will now happen in a helper function for getDeviceNumber and getDevicePCIBusNumRemote, as the code to read HipEnvVar were really similar in them.


[ROCm/clr commit: e747efe2b4]
2020-02-28 16:46:12 +05:30
jiabaxie de260a6d60 Updated hipEnvVarDriver to work with Windows (#1614)
* Updated hipEnvVarDriver to work with Windows

* Cleaned up a bit of code

* Fixed a part where putenv was used for both win and linux

* Defines moved to test_common.h and cleaned up code

* Cleaned up some macro defines and used const char instead

* Got rid of some excess commenting

* directory paths are unconditional

* Cleaned some duplicate code, and variables are now declared and defined together


[ROCm/clr commit: 7bbd420068]
2019-11-18 12:18:29 +05:30
Rahul Garg a160d3ee2e [dtests] refactor windows specific changes (#1313)
* [dtests] refactor windows specific changes

* Refactor hipMemoryAllocateCoherentDriver - PR- 1309

* Fix missing z in _putenv_s

* Revert "Fix missing z in _putenv_s"

This reverts commit 099a1b20a5c75c5f122d57c0ad2bca01745cdc9c.

* Refactor changes from PR 1299

* Update hipEnvVarDriver.cpp


[ROCm/clr commit: c741ad3c80]
2019-08-16 02:13:00 +00:00
ansurya 68135c897a [dtests[ Fix build issues with hipEnvVar*.cpp on windows (#1299)
* replace getopt with clara based command line options

* Removed header getopt.h

[ROCm/clr commit: fc60f3a95b]
2019-08-09 11:52:10 +00:00
Maneesh Gupta 74110bbd43 [hit] Rename RUN -> TEST & RUN_NAMED -> TEST_NAMED
Change-Id: I75e24f15129973cee15fc9dac65d678bd2172074


[ROCm/clr commit: 53dd1df3fa]
2019-05-09 09:59:18 +05:30
Saleel Kudchadker ec328d9ac8 Check for hipEnvVar at the same level if directed_tests location fails
[ROCm/clr commit: 4946c4357d]
2018-08-17 12:14:42 -07:00
Maneesh Gupta 46ddefedee Apply .clangformat to all repo source files
Change-Id: I7e79c6058f0303f9a98911e3b7dd2e8596079344


[ROCm/clr commit: 9e47fccc89]
2018-03-12 11:29:03 +05:30
sunway513 67afe0ec04 Change to use hipDeviceGetPCIBusId api for hipEnvVarDriver test
[ROCm/clr commit: b7c34fb80f]
2017-07-27 17:41:49 +00:00
sunway513 237d1318b2 Fix indentation, binary path and add wait on popen calls to hipEnvVar test
[ROCm/clr commit: 046e9c570d]
2017-07-24 17:16:13 +00:00
Ben Sander 90bc4809b0 Several fixes/improvements to directed tests.
Change-Id: Ieb32569ddbf5795d2ab3392165a7ddc22693dc62


[ROCm/clr commit: 4acb7dd947]
2016-10-18 22:27:16 -05:00
Maneesh Gupta 43d07079e9 directed tests: Updated to use new hip include path
Change-Id: Iab1aee638b7158eb9674a19625dedf6471947e51


[ROCm/clr commit: 5947878247]
2016-10-04 22:20:50 +05:30
pensun eb5bb292ae change hipEnvVarDriver to reduce communications to hipEnvVar
Change-Id: I65a5f67dd51d53594fa51f88505e32321643d189


[ROCm/clr commit: e6d7ecc0f5]
2016-09-27 23:00:11 -05:00
Maneesh Gupta e743b311d3 directed tests: Enabled top-level uncategorized tests in HIT
Change-Id: If37cbd00244ebfa0e5bff8362820aa68aaa163f1


[ROCm/clr commit: 9216464861]
2016-09-23 16:15:31 +05:30
Ben Sander 7f90e11724 Explicitly include <string>
[ROCm/clr commit: aea31ad4e1]
2016-05-02 12:49:53 -05:00
pensun c85ce19fb7 Fix for hipEnvVar test for titan machine
[ROCm/clr commit: 0b048afa79]
2016-03-03 06:23:17 -06:00
pensun 83afc7ac7c fix for hipEnvVarDriver test
[ROCm/clr commit: 8c0ce13ec2]
2016-03-02 04:35:37 -06:00
pensun 4ada8d4ad9 Test cases for HIP_VISIBLE_DEVICES/CUDA_VISIBLE_DEVICES.
hipEnvVar is the base test case, to be called by hipEnvVarDriver
at the run time.
Test case includes tests for normal use case of the environment
variable, invalid value/sequence and use CUDA_VISIBLE_DEVICES as a
alternative.


[ROCm/clr commit: ee53ef507f]
2016-02-27 14:48:00 -06:00
pensun fc3eac09fe add test case and its driver for HIP_VISIBLE_DEVICES/CUDA_VISIBLE_DEVICES
[ROCm/clr commit: 43e156c002]
2016-02-27 09:43:38 -06:00