Skip to content
This repository has been archived by the owner on Jul 26, 2024. It is now read-only.

Commit

Permalink
fix compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
bmcdanie committed Jul 21, 2020
1 parent de6a0a0 commit d579ebc
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 7 deletions.
4 changes: 3 additions & 1 deletion kgemm_nn.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,9 @@ void kgemm_nn( int const mm, int const nn, int const kk,
case 7: case_code(7)
case 8: case_code(8)
default:
#pragma unroll
#ifdef USE_GPU
#pragma unroll
#endif
for(k=0; k < kk; k++) {
cij += (*Ap) * (*Bp);
Ap += inc_A;
Expand Down
4 changes: 3 additions & 1 deletion kgemm_nt.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,9 @@ void kgemm_nt( int const mm, int const nn, int const kk,
case 7: case_code(7)
case 8: case_code(8)
default:
#pragma unroll
#ifdef USE_GPU
#pragma unroll
#endif
for(k=0; k < kk; k++) {
cij += (*Ap) * (*Bp);
Ap += inc_A;
Expand Down
2 changes: 1 addition & 1 deletion kronmult2_xbatched.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ void kronmult2_xbatched(

auto Aarray = [=] (int const i1,
int const i2
) -> T const *const {
) -> T const * {
return( Aarray_[ indx2f(i1,i2,ndim ) ] );
};

Expand Down
2 changes: 1 addition & 1 deletion kronmult3_xbatched.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ void kronmult3_xbatched(

auto Aarray = [&] (int const i1,
int const i2
) -> T const * const {
) -> T const * {
return( Aarray_[ indx2f(i1,i2,ndim ) ] );
};

Expand Down
2 changes: 1 addition & 1 deletion kronmult4_xbatched.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ void kronmult4_xbatched(

auto Aarray = [&] (int const i1,
int const i2
) -> T const * const {
) -> T const * {
return( Aarray_[ indx2f(i1,i2,ndim ) ] );
};

Expand Down
2 changes: 1 addition & 1 deletion kronmult5_xbatched.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ void kronmult5_xbatched(

auto Aarray = [&] (int const i1,
int const i2
) -> T const * const {
) -> T const * {
return( Aarray_[ indx2f(i1,i2,ndim ) ] );
};

Expand Down
2 changes: 1 addition & 1 deletion kronmult6_xbatched.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ void kronmult6_xbatched(

auto Aarray = [&] (int const i1,
int const i2
) -> T const * const {
) -> T const * {
return( Aarray_[ indx2f(i1,i2,ndim ) ] );
};

Expand Down

0 comments on commit d579ebc

Please sign in to comment.