[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]
Cette révision appartient à :
ansurya a créé et Maneesh Gupta a révisé 2019-08-09 11:52:10 +00:00
1 Parent d42844182c
révision 83e95631cf
3 fichiers modifiés
+1214 -45

Aucun fichier ne correspond à votre recherche

+8
Voir le fichier
@@ -30,6 +30,14 @@ OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWA
#include "hip/hip_runtime.h"
#include <chrono>
#include <thread>
#ifdef _WIN64
#define popen(x,y) _popen(x,y)
#define pclose(x) _pclose(x)
#define setenv(x,y,z) _putenv_s(x,y)
#define unsetenv(x) _putenv_s(x,"")
#endif
using namespace std;
int getDeviceNumber() {