2020-02-09 23:59:57 +01:00
|
|
|
/*
|
|
|
|
|
* Copyright (C) 2020 Intel Corporation
|
|
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2020-02-23 22:44:01 +01:00
|
|
|
#include "shared/source/utilities/const_stringref.h"
|
2020-02-09 23:59:57 +01:00
|
|
|
|
|
|
|
|
#include "igfxfmid.h"
|
|
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
|
|
2020-03-10 14:02:09 +01:00
|
|
|
class OclocArgHelper;
|
2020-02-09 23:59:57 +01:00
|
|
|
namespace NEO {
|
|
|
|
|
|
|
|
|
|
bool requestedFatBinary(int argc, const char *argv[]);
|
|
|
|
|
|
2020-03-10 14:02:09 +01:00
|
|
|
int buildFatbinary(int argc, const char *argv[], OclocArgHelper *helper);
|
2020-02-09 23:59:57 +01:00
|
|
|
|
|
|
|
|
std::vector<PRODUCT_FAMILY> getAllSupportedTargetPlatforms();
|
|
|
|
|
std::vector<ConstStringRef> toProductNames(const std::vector<PRODUCT_FAMILY> &productIds);
|
|
|
|
|
PRODUCT_FAMILY asProductId(ConstStringRef product, const std::vector<PRODUCT_FAMILY> &allSupportedPlatforms);
|
|
|
|
|
GFXCORE_FAMILY asGfxCoreId(ConstStringRef core);
|
|
|
|
|
void appendPlatformsForGfxCore(GFXCORE_FAMILY core, const std::vector<PRODUCT_FAMILY> &allSupportedPlatforms, std::vector<PRODUCT_FAMILY> &out);
|
|
|
|
|
std::vector<ConstStringRef> getTargetPlatformsForFatbinary(ConstStringRef deviceArg);
|
|
|
|
|
|
|
|
|
|
} // namespace NEO
|