File: graph_export_imp.cpp

package info (click to toggle)
intel-compute-runtime 26.05.37020.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 83,596 kB
  • sloc: cpp: 976,037; lisp: 2,096; sh: 704; makefile: 162
file content (35 lines) | stat: -rw-r--r-- 1,031 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
 * Copyright (C) 2025 Intel Corporation
 *
 * SPDX-License-Identifier: MIT
 *
 */

#include "level_zero/experimental/source/graph/graph.h"
#include "level_zero/experimental/source/graph/graph_export.h"
#include "level_zero/ze_api.h"

#include <optional>
#include <sstream>
#include <string>
#include <string_view>

namespace L0 {

namespace GraphDumpHelper {

void addLaunchKernelAdditionalExtensionParameters(std::vector<std::pair<std::string, std::string>> &params, const ze_base_desc_t *baseDesc) {
    const auto stypeValue = std::to_string(static_cast<uint32_t>(baseDesc->stype));

    params.emplace_back("extension.stype", stypeValue + " (not recognized)");
}

void addMemoryTransferAdditionalExtensionParameters(std::vector<std::pair<std::string, std::string>> &params, const ze_base_desc_t *baseDesc) {
    const auto stypeValue = std::to_string(static_cast<uint32_t>(baseDesc->stype));

    params.emplace_back("extension.stype", stypeValue + " (not recognized)");
}

} // namespace GraphDumpHelper

} // namespace L0