diff --git a/cudablas/compute/cuda_ztstrf.c b/cudablas/compute/cuda_ztstrf.c
index 1632ba706bd266e01dfef1af586f88d9e6bca6bf..583dd9fd019d47dcdd65f9c242644fce3c957c4d 100644
--- a/cudablas/compute/cuda_ztstrf.c
+++ b/cudablas/compute/cuda_ztstrf.c
@@ -24,7 +24,7 @@
  **/
 #include "cudablas/include/cudablas.h"
 
-#if defined(CHAMELEON_USE_MAGMA)
+#if defined(CHAMELEON_USE_MAGMA) && 0
 int CUDA_ztstrf(
         char storev, magma_int_t m, magma_int_t n, magma_int_t ib, magma_int_t nb,
         cuDoubleComplex *hU, magma_int_t ldhu, cuDoubleComplex *dU, magma_int_t lddu,