[dtests[ Fix build issues with hipEnvVar*.cpp on windows (#1299)

* replace getopt with clara based command line options

* Removed header getopt.h
Этот коммит содержится в:
ansurya authored and Maneesh Gupta committed 2019-08-09 11:52:10 +00:00
1 родитель 569f35a258
Коммит fc60f3a95b
3 files changed
+1214 -45

No files matched your search

+8
Просмотреть файл
@@ -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() {