Skip to content

Added license and removed dnnl_graph_compiler.hpp #63

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/dnnl/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
include(onednn)

gc_add_path(GC_LIB_SOURCES GLOB "*.*pp")
gc_add_path(GC_LIB_SOURCES GLOB "*.cpp")
gc_add_path(GC_LIB_INCLUDES ${DNNL_INCLUDES})
40 changes: 39 additions & 1 deletion src/dnnl/dnnl_graph_compiler.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,48 @@
#include "dnnl_graph_compiler.hpp"
/*
* Copyright (C) 2024 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions
* and limitations under the License.
*
* SPDX-License-Identifier: Apache-2.0
*/

#include "dnnl_graph_compiler.h"
#include "gc_version.h"
#include <memory>
#include <new>
#include <string_view>

// dnnl_graph_compiler.h interface implementation.
// TODO: Implement.

struct dnnl_graph_compiler_executable {
// TODO: Implement

void execute(dnnl_graph_compiler_tensor *inputs,
dnnl_graph_compiler_tensor *outputs) const;
};

struct dnnl_graph_compiler {
const dnnl_graph_compiler_context ctx;

explicit dnnl_graph_compiler(const dnnl_graph_compiler_context *context)
// TODO: Initialize ctx with context or defaults if context is nullptr
: ctx() {}

[[nodiscard]] std::unique_ptr<const dnnl_graph_compiler_executable>
compile(const std::string_view &graph_json) const;
};

const dnnl_graph_compiler_version *dnnl_graph_compiler_get_version(void) {
static const dnnl_graph_compiler_version ver = {
.api_version = {DNNL_GC_API_V_MAJOR, DNNL_GC_API_V_MINOR,
Expand Down
26 changes: 0 additions & 26 deletions src/dnnl/dnnl_graph_compiler.hpp

This file was deleted.