Skip to content

Commit

Permalink
Fix issues according to comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
tcojean committed Oct 28, 2019
1 parent f6e05fd commit fa7c51c
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 13 deletions.
10 changes: 5 additions & 5 deletions cmake/CTestCustom.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ list(APPEND CTEST_CUSTOM_COVERAGE_EXCLUDE
# Exclude try_compile sources from coverage results:
"/CMakeFiles/CMakeTmp/"

"third_party"
".*/third_party/.*"

"test"
".*/test/.*"

"benchmark"
".*/benchmark/.*"

"examples"
".*/examples/.*"

"c\\+\\+"
".*/c\\+\\+/.*"
)

set(CTEST_SOURCE_DIRECTORY "@Ginkgo_SOURCE_DIR@" CACHE STRING "" FORCE)
Expand Down
1 change: 1 addition & 0 deletions cuda/matrix/sellp_kernels.cu
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ namespace {

constexpr auto default_block_size = 512;


template <typename ValueType, typename IndexType>
__global__ __launch_bounds__(matrix::default_slice_size) void spmv_kernel(
size_type num_rows, size_type num_right_hand_sides, size_type b_stride,
Expand Down
3 changes: 1 addition & 2 deletions doc/examples/examples.hpp.in
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
* <tr valign="top">
* <td>@ref twentyseven_pt_stencil_solver</td>
* <td> Using a twentyseven point 3D stencil to solve the poisson equation
with
* array views.
* with array views.
* </td></tr>
*
* <tr valign="top">
Expand Down
6 changes: 6 additions & 0 deletions hip/base/exception.hip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,12 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

#include <ginkgo/core/base/exception.hpp>


#include <hip/hip_runtime.h>
#include <hipblas.h>
#include <hipsparse.h>


namespace gko {


Expand Down Expand Up @@ -64,6 +66,8 @@ std::string HipblasError::get_error(int64 error_code)
GKO_REGISTER_HIPBLAS_ERROR(HIPBLAS_STATUS_INTERNAL_ERROR);
GKO_REGISTER_HIPBLAS_ERROR(HIPBLAS_STATUS_NOT_SUPPORTED);
return "Unknown error";

#undef GKO_REGISTER_HIPBLAS_ERROR
}


Expand All @@ -83,6 +87,8 @@ std::string HipsparseError::get_error(int64 error_code)
GKO_REGISTER_HIPSPARSE_ERROR(HIPSPARSE_STATUS_INTERNAL_ERROR);
GKO_REGISTER_HIPSPARSE_ERROR(HIPSPARSE_STATUS_MATRIX_TYPE_NOT_SUPPORTED);
return "Unknown error";

#undef GKO_REGISTER_HIPSPARSE_ERROR
}


Expand Down
6 changes: 3 additions & 3 deletions hip/base/math.hip.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
******************************<GINKGO LICENSE>*******************************/

#ifndef GKO_CUDA_BASE_MATH_HPP_
#define GKO_CUDA_BASE_MATH_HPP_
#ifndef GKO_HIP_BASE_MATH_HPP_
#define GKO_HIP_BASE_MATH_HPP_


#include <ginkgo/core/base/math.hpp>
Expand Down Expand Up @@ -98,4 +98,4 @@ __device__ GKO_INLINE std::complex<double> one<std::complex<double>>()
} // namespace gko


#endif // GKO_CUDA_BASE_MATH_HPP_
#endif // GKO_HIP_BASE_MATH_HPP_
3 changes: 0 additions & 3 deletions hip/base/types.hip.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ namespace gko {

namespace kernels {
namespace hip {


namespace detail {


Expand Down Expand Up @@ -131,7 +129,6 @@ struct hip_type_impl<hipComplex> {
using type = thrust::complex<float>;
};


template <typename T>
constexpr hipblasDatatype_t hip_data_type_impl()
{
Expand Down

0 comments on commit fa7c51c

Please sign in to comment.