Skip to content

Commit 6ee218d

Browse files
author
Chen, Brox
committed
fix merge error
1 parent 96662a8 commit 6ee218d

File tree

3 files changed

+24
-3
lines changed

3 files changed

+24
-3
lines changed

sycl/include/sycl/ext/intel/experimental/fpga_annotated_properties.hpp

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ namespace ext {
1717
namespace intel {
1818
namespace experimental {
1919

20-
using namespace sycl::ext::oneapi::experimental;
20+
template <typename PropertyT, typename... Ts>
21+
using property_value =
22+
sycl::ext::oneapi::experimental::property_value<PropertyT, Ts...>;
2123
//===----------------------------------------------------------------------===//
2224
// FPGA properties of annotated_arg/annotated_ptr
2325
//===----------------------------------------------------------------------===//
@@ -108,7 +110,19 @@ namespace experimental {
108110
template <typename T, typename PropertyListT> class annotated_arg;
109111
template <typename T, typename PropertyListT> class annotated_ptr;
110112

111-
using namespace sycl::ext::intel::experimental;
113+
struct alignment_key;
114+
using register_map_key = intel::experimental::register_map_key;
115+
using conduit_key = intel::experimental::conduit_key;
116+
using stable_key = intel::experimental::stable_key;
117+
using buffer_location_key = intel::experimental::buffer_location_key;
118+
using awidth_key = intel::experimental::awidth_key;
119+
using dwidth_key = intel::experimental::dwidth_key;
120+
using latency_key = intel::experimental::latency_key;
121+
using read_write_mode_key = intel::experimental::read_write_mode_key;
122+
using maxburst_key = intel::experimental::maxburst_key;
123+
using wait_request_key = intel::experimental::wait_request_key;
124+
using read_write_mode_enum = intel::experimental::read_write_mode_enum;
125+
112126
template <> struct is_property_key<register_map_key> : std::true_type {};
113127
template <> struct is_property_key<conduit_key> : std::true_type {};
114128
template <> struct is_property_key<stable_key> : std::true_type {};

sycl/include/sycl/ext/oneapi/experimental/annotated_arg/annotated_arg.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
#include <sycl/detail/stl_type_traits.hpp>
1515
#include <sycl/exception.hpp>
16+
#include <sycl/ext/intel/experimental/fpga_annotated_properties.hpp>
1617
#include <sycl/ext/oneapi/experimental/common_annotated_properties/properties.hpp>
1718
#include <sycl/ext/oneapi/properties/properties.hpp>
1819

sycl/include/sycl/ext/oneapi/experimental/annotated_ptr/annotated_ptr.hpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
#include <sycl/detail/stl_type_traits.hpp>
1515
#include <sycl/exception.hpp>
16+
#include <sycl/ext/intel/experimental/fpga_annotated_properties.hpp>
1617
#include <sycl/ext/oneapi/experimental/common_annotated_properties/properties.hpp>
1718
#include <sycl/ext/oneapi/properties/properties.hpp>
1819

@@ -34,6 +35,10 @@ template <int K> inline constexpr alignment_key::value_t<K> alignment;
3435

3536
template <> struct is_property_key<alignment_key> : std::true_type {};
3637

38+
template <typename T, int W>
39+
struct is_valid_property<T, alignment_key::value_t<W>>
40+
: std::bool_constant<std::is_pointer<T>::value> {};
41+
3742
template <typename T, typename PropertyListT>
3843
struct is_property_key_of<alignment_key, annotated_ptr<T, PropertyListT>>
3944
: std::true_type {};
@@ -166,7 +171,8 @@ __SYCL_TYPE(annotated_ptr) annotated_ptr<T, detail::properties_t<Props...>> {
166171

167172
// buffer_location and alignment are allowed for annotated_ref
168173
using allowed_properties =
169-
std::tuple<decltype(buffer_location<0>), decltype(alignment<0>)>;
174+
std::tuple<decltype(ext::intel::experimental::buffer_location<0>),
175+
decltype(ext::oneapi::experimental::alignment<0>)>;
170176
using filtered_properties =
171177
typename PropertiesFilter<allowed_properties, Props...>::tuple;
172178

0 commit comments

Comments
 (0)