Commit c6071f23 authored by D'azevedo, Ed's avatar D'azevedo, Ed
Browse files

initial magma in dmrg_init

parent c3b9e6ce
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -14,13 +14,8 @@ BatchedGemm<FpType>::BatchedGemm(int noperator,
                                 int *ld_Bmatrix)
{
  
        if (!is_initialized) {
        dmrg_init();

            const int ltrue = (1 == 1 );
            is_initialized = ltrue;
            };

	noperator_ = noperator;
	npatches_ = npatches;

+0 −1
Original line number Diff line number Diff line
@@ -36,7 +36,6 @@ class BatchedGemm<FpType> {

private:

       static int is_initialized;
       static const bool use_sparse =  true;

	IntegerType *left_patch_start_;
+3 −3
Original line number Diff line number Diff line
@@ -9,7 +9,7 @@
#include "mkl.h"
#endif

   static int isfirst = 1;
   static int is_initialized = 0;

#ifdef USE_MAGMA
#undef USE_MALLOC
@@ -24,8 +24,8 @@

void dmrg_init()
{
  if (isfirst) {
     isfirst = 0;
  if (!is_initialized) {
     is_initialized = 1;

#ifdef USE_MAGMA
     device = 0;