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

18 Коммитов

Автор SHA1 Сообщение Дата
jiabaxie 39fd208ed2 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/hip commit: af90312867]
2020-02-28 16:46:12 +05:30
jiabaxie cd3bf4e205 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/hip commit: e73927caee]
2019-11-18 12:18:29 +05:30
Rahul Garg 971b75588e [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/hip commit: 44422065a1]
2019-08-16 02:13:00 +00:00
ansurya 83e95631cf [dtests[ Fix build issues with hipEnvVar*.cpp on windows (#1299)
* replace getopt with clara based command line options

* Removed header getopt.h

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


[ROCm/hip commit: 9f2d1453fb]
2019-05-09 09:59:18 +05:30
Saleel Kudchadker 0d410147cf Check for hipEnvVar at the same level if directed_tests location fails
[ROCm/hip commit: 8e0e373f69]
2018-08-17 12:14:42 -07:00
Maneesh Gupta 4f42ee762d Apply .clangformat to all repo source files
Change-Id: I7e79c6058f0303f9a98911e3b7dd2e8596079344


[ROCm/hip commit: 1ba06f63c4]
2018-03-12 11:29:03 +05:30
sunway513 014f1797d9 Change to use hipDeviceGetPCIBusId api for hipEnvVarDriver test
[ROCm/hip commit: ed0d6cf745]
2017-07-27 17:41:49 +00:00
sunway513 286ab981a9 Fix indentation, binary path and add wait on popen calls to hipEnvVar test
[ROCm/hip commit: 81bc82d166]
2017-07-24 17:16:13 +00:00
Ben Sander f7e9300d4e Several fixes/improvements to directed tests.
Change-Id: Ieb32569ddbf5795d2ab3392165a7ddc22693dc62


[ROCm/hip commit: c4b602a0b9]
2016-10-18 22:27:16 -05:00
Maneesh Gupta 724a024bb6 directed tests: Updated to use new hip include path
Change-Id: Iab1aee638b7158eb9674a19625dedf6471947e51


[ROCm/hip commit: 7e04884d0f]
2016-10-04 22:20:50 +05:30
pensun 4caa41f175 change hipEnvVarDriver to reduce communications to hipEnvVar
Change-Id: I65a5f67dd51d53594fa51f88505e32321643d189


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


[ROCm/hip commit: 8e55fc7b42]
2016-09-23 16:15:31 +05:30
Ben Sander 556b04b364 Explicitly include <string>
[ROCm/hip commit: 1ccc900649]
2016-05-02 12:49:53 -05:00
pensun 2019a85ac3 Fix for hipEnvVar test for titan machine
[ROCm/hip commit: 20f939b356]
2016-03-03 06:23:17 -06:00
pensun ea4635eb06 fix for hipEnvVarDriver test
[ROCm/hip commit: 4018d6a33b]
2016-03-02 04:35:37 -06:00
pensun b9421830a4 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/hip commit: 39b44cb484]
2016-02-27 14:48:00 -06:00
pensun dcf5ac2c06 add test case and its driver for HIP_VISIBLE_DEVICES/CUDA_VISIBLE_DEVICES
[ROCm/hip commit: 43315ad62b]
2016-02-27 09:43:38 -06:00