Files
compute-runtime/level_zero/source/inc/ze_intel_gpu.h
2022-05-17 20:55:56 +02:00

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));
}