[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]
Cette révision appartient à :
Rahul Garg
2019-08-15 19:13:00 -07:00
révisé par Maneesh Gupta
Parent 3c8f84a5c3
révision 971b75588e
5 fichiers modifiés avec 11 ajouts et 24 suppressions
+1 -8
Voir le fichier
@@ -31,14 +31,7 @@ THE SOFTWARE.
#include "clara/clara.hpp"
#include <string>
#include "hip/hip_runtime.h"
#ifdef _WIN64
#include <tchar.h>
#endif
#ifdef _WIN64
#define setenv(x,y,z) _putenv_s(x,y)
#endif
#include "test_common.h"
using namespace std;
using namespace clara;
+1 -7
Voir le fichier
@@ -30,13 +30,7 @@ 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
#include "test_common.h"
using namespace std;
-3
Voir le fichier
@@ -29,9 +29,6 @@ THE SOFTWARE.
#include "hip/hip_runtime.h"
#include "test_common.h"
#ifdef _WIN64
#define aligned_alloc _aligned_malloc
#endif
bool p_async = false;
+1 -6
Voir le fichier
@@ -29,12 +29,7 @@ OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWA
#include <assert.h>
#include <string>
#include "hip/hip_runtime.h"
#ifdef _WIN64
#define popen(x,y) _popen(x,y)
#define pclose(x) _pclose(x)
#define setenv(x,y,z) _putenv_s(x,y)
#endif
#include "test_common.h"
using namespace std;
+8
Voir le fichier
@@ -95,6 +95,14 @@ THE SOFTWARE.
} \
}
#ifdef _WIN64
#include <tchar.h>
#define aligned_alloc _aligned_malloc
#define popen(x,y) _popen(x,y)
#define pclose(x) _pclose(x)
#define setenv(x,y,z) _putenv_s(x,y)
#endif
// standard command-line variables:
extern size_t N;
extern char memsetval;