Files
compute-runtime/level_zero/source/inc/ze_intel_gpu.h
Mateusz Jablonski 044695f3e4 Stop self-opening ze_intel_gpu library
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2020-11-09 14:15:00 +01:00

20 lines
356 B
C

/*
* Copyright (C) 2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include <assert.h>
#include <stdlib.h>
#include <string.h>
inline bool getenv_tobool(const char *name) {
const char *env = getenv(name);
if ((nullptr == env) || (0 == strcmp("0", env)))
return false;
return (0 == strcmp("1", env));
}