Skip to content

Commit

Permalink
update device namespace to internal to match BLAS++ change
Browse files Browse the repository at this point in the history
  • Loading branch information
mgates3 committed Jan 12, 2023
1 parent e237332 commit ddb8158
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
9 changes: 5 additions & 4 deletions src/cuda/cuda_potrf.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@

//==============================================================================
// todo: put into BLAS++ header somewhere.
// changed from blas::device to blas::internal in 5ca8ad35 2022-11-28

namespace blas {
namespace device {
namespace internal {

cublasFillMode_t uplo2cublas( blas::Uplo uplo );

} // namespace device
} // namespace internal
} // namespace blas

//==============================================================================
Expand Down Expand Up @@ -118,7 +119,7 @@ void potrf_work_size_bytes(
lapack::Queue& queue )
{
auto solver = queue.solver();
auto uplo_ = blas::device::uplo2cublas( uplo );
auto uplo_ = blas::internal::uplo2cublas( uplo );

// query for workspace size
#if CUSOLVER_VERSION >= 11000
Expand Down Expand Up @@ -148,7 +149,7 @@ void potrf(
{
// todo: check for overflow
auto solver = queue.solver();
auto uplo_ = blas::device::uplo2cublas( uplo );
auto uplo_ = blas::internal::uplo2cublas( uplo );

// for cuda, rocm, call set_device; for oneapi, do nothing.
blas::internal_set_device( queue.device() );
Expand Down
7 changes: 4 additions & 3 deletions src/rocm/rocm_potrf.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@

//==============================================================================
// todo: put into BLAS++ header somewhere.
// changed from blas::device to blas::internal in 5ca8ad35 2022-11-28

namespace blas {
namespace device {
namespace internal {

rocblas_fill uplo2rocblas(blas::Uplo uplo);

} // namespace device
} // namespace internal
} // namespace blas

//==============================================================================
Expand Down Expand Up @@ -73,7 +74,7 @@ void potrf(
{
// todo: check for overflow
auto solver = queue.handle();
auto uplo_ = blas::device::uplo2rocblas( uplo );
auto uplo_ = blas::internal::uplo2rocblas( uplo );

// for cuda, rocm, call set_device; for oneapi, do nothing.
blas::internal_set_device( queue.device() );
Expand Down

0 comments on commit ddb8158

Please sign in to comment.