|
@@ -251,6 +251,10 @@ int starpu_malloc_flags(void **A, size_t dim, int flags)
|
|
|
{
|
|
|
char *path = starpu_getenv("TMPDIR");
|
|
|
if (!path)
|
|
|
+ path = starpu_getenv("TEMP");
|
|
|
+ if (!path)
|
|
|
+ path = starpu_getenv("TMP");
|
|
|
+ if (!path)
|
|
|
path = "/tmp";
|
|
|
/* Create bogus file if not done already */
|
|
|
char *name = _starpu_mktemp(path, O_RDWR | O_BINARY, &bogusfile);
|