Skip to content

Commit 9f83369

Browse files
authored
Merge pull request elemental#34 from DylanMcKinney/patch-2
More GPU macro protection
2 parents 783dd24 + 07f4897 commit 9f83369

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

include/El/blas_like/level1/Copy/internal_decl.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,13 @@ template<typename T,Dist U,Dist V,
6464
void TransposeDist( DistMatrix<T,U,V,ELEMENT,Device::CPU> const& A,
6565
DistMatrix<T,V,U,ELEMENT,Device::CPU>& B );
6666

67+
#ifdef HYDROGEN_HAVE_CUDA
6768
template<typename T,Dist U,Dist V,
6869
typename=EnableIf<IsDeviceValidType<T,Device::GPU>>>
6970
void TransposeDist( DistMatrix<T,U,V,ELEMENT,Device::GPU> const& A,
7071
DistMatrix<T,V,U,ELEMENT,Device::GPU>& B );
71-
72+
#endif
73+
7274
template<typename T,Dist U,Dist V,Device D,
7375
typename=DisableIf<IsDeviceValidType<T,D>>,typename=void>
7476
void TransposeDist( DistMatrix<T,U,V,ELEMENT,D> const& A,

0 commit comments

Comments
 (0)