compute-runtime/level_zero/source/inc/ze_intel_gpu.h

20 lines
360 B
C

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