İşleme Grafiği

18 İşleme

Yazar SHA1 Mesaj Tarih
jiabaxie af90312867 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.
2020-02-28 16:46:12 +05:30
jiabaxie e73927caee 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
2019-11-18 12:18:29 +05:30
Rahul Garg 44422065a1 [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
2019-08-16 02:13:00 +00:00
ansurya cbe9f8dc6b [dtests[ Fix build issues with hipEnvVar*.cpp on windows (#1299)
* replace getopt with clara based command line options

* Removed header getopt.h
2019-08-09 11:52:10 +00:00
Maneesh Gupta 9f2d1453fb [hit] Rename RUN -> TEST & RUN_NAMED -> TEST_NAMED
Change-Id: I75e24f15129973cee15fc9dac65d678bd2172074
2019-05-09 09:59:18 +05:30
Saleel Kudchadker 8e0e373f69 Check for hipEnvVar at the same level if directed_tests location fails 2018-08-17 12:14:42 -07:00
Maneesh Gupta 1ba06f63c4 Apply .clangformat to all repo source files
Change-Id: I7e79c6058f0303f9a98911e3b7dd2e8596079344
2018-03-12 11:29:03 +05:30
sunway513 ed0d6cf745 Change to use hipDeviceGetPCIBusId api for hipEnvVarDriver test 2017-07-27 17:41:49 +00:00
sunway513 81bc82d166 Fix indentation, binary path and add wait on popen calls to hipEnvVar test 2017-07-24 17:16:13 +00:00
Ben Sander c4b602a0b9 Several fixes/improvements to directed tests.
Change-Id: Ieb32569ddbf5795d2ab3392165a7ddc22693dc62
2016-10-18 22:27:16 -05:00
Maneesh Gupta 7e04884d0f directed tests: Updated to use new hip include path
Change-Id: Iab1aee638b7158eb9674a19625dedf6471947e51
2016-10-04 22:20:50 +05:30
pensun eac2533a92 change hipEnvVarDriver to reduce communications to hipEnvVar
Change-Id: I65a5f67dd51d53594fa51f88505e32321643d189
2016-09-27 23:00:11 -05:00
Maneesh Gupta 8e55fc7b42 directed tests: Enabled top-level uncategorized tests in HIT
Change-Id: If37cbd00244ebfa0e5bff8362820aa68aaa163f1
2016-09-23 16:15:31 +05:30
Ben Sander 1ccc900649 Explicitly include <string> 2016-05-02 12:49:53 -05:00
pensun 20f939b356 Fix for hipEnvVar test for titan machine 2016-03-03 06:23:17 -06:00
pensun 4018d6a33b fix for hipEnvVarDriver test 2016-03-02 04:35:37 -06:00
pensun 39b44cb484 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.
2016-02-27 14:48:00 -06:00
pensun 43315ad62b add test case and its driver for HIP_VISIBLE_DEVICES/CUDA_VISIBLE_DEVICES 2016-02-27 09:43:38 -06:00