Skip to content

Commit

Permalink
gpu: jit: enable dnnl::impl::bfloat16_t in the generator
Browse files Browse the repository at this point in the history
  • Loading branch information
hidefromkgb authored and karturov committed Oct 4, 2022
1 parent 44255a8 commit 10f0d0a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/gpu/jit/jit_generator.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright 2019-2021 Intel Corporation
* Copyright 2019-2022 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -19,15 +19,18 @@

#include <memory>

#include "common/bfloat16.hpp"
#include "common/float16.hpp"
#include "common/nstl.hpp"
#include "gpu/jit/jit_generator_base.hpp"
#include "oneapi/dnnl/dnnl_config.h"

namespace ngen {
using bfloat16 = dnnl::impl::bfloat16_t;
using half = dnnl::impl::float16_t;
}

#define NGEN_BFLOAT16_TYPE
#define NGEN_HALF_TYPE

#include "gpu/jit/ngen/ngen_opencl.hpp"
Expand Down

0 comments on commit 10f0d0a

Please sign in to comment.