Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Commit

Permalink
Fix Format
Browse files Browse the repository at this point in the history
  • Loading branch information
s-Nick committed Jun 13, 2024
1 parent 0d920f0 commit f66104e
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 14 deletions.
2 changes: 1 addition & 1 deletion include/blas_meta.h
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ struct is_sycl_scalar
std::false_type>::type {};

template <>
struct is_sycl_scalar<sycl::half> : std::true_type{};
struct is_sycl_scalar<sycl::half> : std::true_type {};

template <>
struct is_sycl_scalar<float *> : std::false_type {};
Expand Down
2 changes: 1 addition & 1 deletion include/container/sycl_iterator.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class BufferIterator {
using buffer_t = sycl::buffer<scalar_t, dim>;
using access_mode_t = sycl::access_mode;
template <sycl::access_mode acc_md_t = sycl::access_mode::read_write,
sycl::target access_t = sycl::target::device ,
sycl::target access_t = sycl::target::device,
sycl::access::placeholder place_holder_t =
sycl::access::placeholder::false_t>
using accessor_t =
Expand Down
4 changes: 2 additions & 2 deletions src/operations/blas1_trees.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@
#ifndef PORTBLAS_BLAS1_TREES_HPP
#define PORTBLAS_BLAS1_TREES_HPP

#include "blas1/IndexMaxMin.hpp"
#include "blas1/WGAtomicReduction.hpp"
#include "operations/blas1_trees.h"
#include "operations/blas_operators.hpp"
#include "views/view.hpp"
#include "blas1/WGAtomicReduction.hpp"
#include "blas1/IndexMaxMin.hpp"
#include "views/view_sycl.hpp"
#include <stdexcept>
#include <vector>
Expand Down
2 changes: 1 addition & 1 deletion src/operations/blas2/txsv.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ PORTBLAS_INLINE
is_upper, is_transposed, is_unitdiag>::eval(local_memory_t local_mem,
sycl::nd_item<1> ndItem) {
value_t ret = 0;
#ifndef __ADAPTIVECPP__
#ifndef __ADAPTIVECPP__

constexpr bool is_forward =
(is_upper && is_transposed) || (!is_upper && !is_transposed);
Expand Down
15 changes: 6 additions & 9 deletions src/views/view_sycl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,8 @@ namespace blas {
*/

template <typename ViewScalarT, int dim, sycl::access_mode acc_mode_t,
sycl::target access_t,
sycl::access::placeholder place_holder_t, typename view_index_t,
typename view_increment_t>
sycl::target access_t, sycl::access::placeholder place_holder_t,
typename view_index_t, typename view_increment_t>
struct VectorView<
sycl::accessor<ViewScalarT, dim, acc_mode_t, access_t, place_holder_t>,
view_index_t, view_increment_t> {
Expand Down Expand Up @@ -184,19 +183,17 @@ struct VectorView<
};

template <class ViewScalarT, int dim, sycl::access_mode acc_mode_t,
sycl::target access_t,
sycl::access::placeholder place_holder_t, typename view_index_t,
typename layout, bool has_inc>
sycl::target access_t, sycl::access::placeholder place_holder_t,
typename view_index_t, typename layout, bool has_inc>
struct MatrixView<
sycl::accessor<ViewScalarT, dim, acc_mode_t, access_t, place_holder_t>,
view_index_t, layout, has_inc>;
/*!
* @brief Specialization of an MatrixView with an accessor.
*/
template <class ViewScalarT, int dim, sycl::access_mode acc_mode_t,
sycl::target access_t,
sycl::access::placeholder place_holder_t, typename view_index_t,
typename layout, bool has_inc>
sycl::target access_t, sycl::access::placeholder place_holder_t,
typename view_index_t, typename layout, bool has_inc>
struct MatrixView<
sycl::accessor<ViewScalarT, dim, acc_mode_t, access_t, place_holder_t>,
view_index_t, layout, has_inc> {
Expand Down

0 comments on commit f66104e

Please sign in to comment.