Skip to content

Commit

Permalink
Rename template types to dataType and indexType
Browse files Browse the repository at this point in the history
  • Loading branch information
Rbiessy committed Mar 7, 2024
1 parent 0b92a22 commit ce62ad3
Show file tree
Hide file tree
Showing 9 changed files with 95 additions and 89 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,27 +50,27 @@ create_coo_matrix (Buffer version)
namespace oneapi::mkl::sparse {
template <typename fpType, typename intType>
template <typename dataType, typename indexType>
void create_coo_matrix (sycl::queue &queue,
oneapi::mkl::sparse::matrix_handle_t *p_smhandle,
std::int64_t num_rows,
std::int64_t num_cols,
std::int64_t nnz,
index_base index,
sycl::buffer<intType, 1> &row_ind,
sycl::buffer<intType, 1> &col_ind,
sycl::buffer<fpType, 1> &val);
sycl::buffer<indexType, 1> &row_ind,
sycl::buffer<indexType, 1> &col_ind,
sycl::buffer<dataType, 1> &val);
}
.. container:: section

.. rubric:: Template parameters

fpType
dataType
See :ref:`supported template types<onemkl_sparse_supported_types>`.

intType
indexType
See :ref:`supported template types<onemkl_sparse_supported_types>`.

.. container:: section
Expand Down Expand Up @@ -148,27 +148,27 @@ create_coo_matrix (USM version)
namespace oneapi::mkl::sparse {
template <typename fpType, typename intType>
template <typename dataType, typename indexType>
void create_coo_matrix (sycl::queue &queue,
oneapi::mkl::sparse::matrix_handle_t *p_smhandle,
std::int64_t num_rows,
std::int64_t num_cols,
std::int64_t nnz,
index_base index,
intType *row_ind,
intType *col_ind,
fpType *val);
indexType *row_ind,
indexType *col_ind,
dataType *val);
}
.. container:: section

.. rubric:: Template parameters

fpType
dataType
See :ref:`supported template types<onemkl_sparse_supported_types>`.

intType
indexType
See :ref:`supported template types<onemkl_sparse_supported_types>`.

.. container:: section
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,27 +50,27 @@ create_csr_matrix (Buffer version)
namespace oneapi::mkl::sparse {
template <typename fpType, typename intType>
template <typename dataType, typename indexType>
void create_csr_matrix (sycl::queue &queue,
oneapi::mkl::sparse::matrix_handle_t *p_smhandle,
std::int64_t num_rows,
std::int64_t num_cols,
std::int64_t nnz,
index_base index,
sycl::buffer<intType, 1> &row_ptr,
sycl::buffer<intType, 1> &col_ind,
sycl::buffer<fpType, 1> &val);
sycl::buffer<indexType, 1> &row_ptr,
sycl::buffer<indexType, 1> &col_ind,
sycl::buffer<dataType, 1> &val);
}
.. container:: section

.. rubric:: Template parameters

fpType
dataType
See :ref:`supported template types<onemkl_sparse_supported_types>`.

intType
indexType
See :ref:`supported template types<onemkl_sparse_supported_types>`.

.. container:: section
Expand Down Expand Up @@ -147,27 +147,27 @@ create_csr_matrix (USM version)
namespace oneapi::mkl::sparse {
template <typename fpType, typename intType>
template <typename dataType, typename indexType>
void create_csr_matrix (sycl::queue &queue,
oneapi::mkl::sparse::matrix_handle_t *p_smhandle,
std::int64_t num_rows,
std::int64_t num_cols,
std::int64_t nnz,
index_base index,
intType *row_ptr,
intType *col_ind,
fpType *val);
indexType *row_ptr,
indexType *col_ind,
dataType *val);
}
.. container:: section

.. rubric:: Template parameters

fpType
dataType
See :ref:`supported template types<onemkl_sparse_supported_types>`.

intType
indexType
See :ref:`supported template types<onemkl_sparse_supported_types>`.

.. container:: section
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,22 +34,22 @@ create_dense_matrix (Buffer version)
namespace oneapi::mkl::sparse {
template <typename fpType>
template <typename dataType>
void create_dense_matrix (sycl::queue &queue,
oneapi::mkl::sparse::dense_matrix_handle_t *p_dmhandle,
std::int64_t num_rows,
std::int64_t num_cols,
std::int64_t ld,
layout dense_layout,
sycl::buffer<fpType, 1> &val);
sycl::buffer<dataType, 1> &val);
}
.. container:: section

.. rubric:: Template parameters

fpType
dataType
See :ref:`supported template types<onemkl_sparse_supported_types>`.

.. container:: section
Expand Down Expand Up @@ -117,22 +117,22 @@ create_dense_matrix (USM version)
namespace oneapi::mkl::sparse {
template <typename fpType>
template <typename dataType>
void create_dense_matrix (sycl::queue &queue,
oneapi::mkl::sparse::dense_matrix_handle_t *p_dmhandle,
std::int64_t num_rows,
std::int64_t num_cols,
std::int64_t ld,
layout dense_layout,
fpType *val);
dataType *val);
}
.. container:: section

.. rubric:: Template parameters

fpType
dataType
See :ref:`supported template types<onemkl_sparse_supported_types>`.

.. container:: section
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,19 @@ create_dense_vector (Buffer version)
namespace oneapi::mkl::sparse {
template <typename fpType>
template <typename dataType>
void create_dense_vector (sycl::queue &queue,
oneapi::mkl::sparse::dense_vector_handle_t *p_dvhandle,
std::int64_t size,
sycl::buffer<fpType, 1> &val);
sycl::buffer<dataType, 1> &val);
}
.. container:: section

.. rubric:: Template parameters

fpType
dataType
See :ref:`supported template types<onemkl_sparse_supported_types>`.

.. container:: section
Expand Down Expand Up @@ -102,19 +102,19 @@ create_dense_vector (USM version)
namespace oneapi::mkl::sparse {
template <typename fpType>
template <typename dataType>
void create_dense_vector (sycl::queue &queue,
oneapi::mkl::sparse::dense_vector_handle_t *p_dvhandle,
std::int64_t size,
fpType *val);
dataType *val);
}
.. container:: section

.. rubric:: Template parameters

fpType
dataType
See :ref:`supported template types<onemkl_sparse_supported_types>`.

.. container:: section
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,28 +34,28 @@ set_coo_matrix_data (Buffer version)
namespace oneapi::mkl::sparse {
template <typename fpType, typename intType>
template <typename dataType, typename indexType>
void set_coo_matrix_data (sycl::queue &queue,
oneapi::mkl::sparse::matrix_handle_t smhandle,
std::int64_t num_rows,
std::int64_t num_cols,
std::int64_t nnz,
index_base index,
sycl::buffer<intType, 1> &row_ind,
sycl::buffer<intType, 1> &col_ind,
sycl::buffer<fpType, 1> &val);
sycl::buffer<indexType, 1> &row_ind,
sycl::buffer<indexType, 1> &col_ind,
sycl::buffer<dataType, 1> &val);
}
.. container:: section

.. rubric:: Template parameters

fpType
dataType
See :ref:`supported template types<onemkl_sparse_supported_types>`. Can be
a different type than what was used when creating the ``matrix_handle_t``.

intType
indexType
See :ref:`supported template types<onemkl_sparse_supported_types>`. Can be
a different type than what was used when creating the ``matrix_handle_t``.

Expand Down Expand Up @@ -124,28 +124,28 @@ set_coo_matrix_data (USM version)
namespace oneapi::mkl::sparse {
template <typename fpType, typename intType>
template <typename dataType, typename indexType>
void set_coo_matrix_data (sycl::queue &queue,
oneapi::mkl::sparse::matrix_handle_t smhandle,
std::int64_t num_rows,
std::int64_t num_cols,
std::int64_t nnz,
index_base index,
intType *row_ind,
intType *col_ind,
fpType *val);
indexType *row_ind,
indexType *col_ind,
dataType *val);
}
.. container:: section

.. rubric:: Template parameters

fpType
dataType
See :ref:`supported template types<onemkl_sparse_supported_types>`. Can be
a different type than what was used when creating the ``matrix_handle_t``.

intType
indexType
See :ref:`supported template types<onemkl_sparse_supported_types>`. Can be
a different type than what was used when creating the ``matrix_handle_t``.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,28 +34,28 @@ set_csr_matrix_data (Buffer version)
namespace oneapi::mkl::sparse {
template <typename fpType, typename intType>
template <typename dataType, typename indexType>
void set_csr_matrix_data (sycl::queue &queue,
oneapi::mkl::sparse::matrix_handle_t smhandle,
std::int64_t num_rows,
std::int64_t num_cols,
std::int64_t nnz,
index_base index,
sycl::buffer<intType, 1> &row_ptr,
sycl::buffer<intType, 1> &col_ind,
sycl::buffer<fpType, 1> &val);
sycl::buffer<indexType, 1> &row_ptr,
sycl::buffer<indexType, 1> &col_ind,
sycl::buffer<dataType, 1> &val);
}
.. container:: section

.. rubric:: Template parameters

fpType
dataType
See :ref:`supported template types<onemkl_sparse_supported_types>`. Can be
a different type than what was used when creating the ``matrix_handle_t``.

intType
indexType
See :ref:`supported template types<onemkl_sparse_supported_types>`. Can be
a different type than what was used when creating the ``matrix_handle_t``.

Expand Down Expand Up @@ -123,28 +123,28 @@ set_csr_matrix_data (USM version)
namespace oneapi::mkl::sparse {
template <typename fpType, typename intType>
template <typename dataType, typename indexType>
void set_csr_matrix_data (sycl::queue &queue,
oneapi::mkl::sparse::matrix_handle_t smhandle,
std::int64_t num_rows,
std::int64_t num_cols,
std::int64_t nnz,
index_base index,
intType *row_ptr,
intType *col_ind,
fpType *val);
indexType *row_ptr,
indexType *col_ind,
dataType *val);
}
.. container:: section

.. rubric:: Template parameters

fpType
dataType
See :ref:`supported template types<onemkl_sparse_supported_types>`. Can be
a different type than what was used when creating the ``matrix_handle_t``.

intType
indexType
See :ref:`supported template types<onemkl_sparse_supported_types>`. Can be
a different type than what was used when creating the ``matrix_handle_t``.

Expand Down
Loading

0 comments on commit ce62ad3

Please sign in to comment.