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

changes for c++11

parent 0c665647
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -8,8 +8,8 @@

int dmrg_is_managed( const void *ptr )
{
  const int false = (0 == 1);
  int is_managed = false;
  const int lfalse = (0 == 1);
  int is_managed = lfalse;
 
#ifdef USE_MAGMA
  struct cudaPointerAttributes attribute;
+2 −2
Original line number Diff line number Diff line
@@ -43,7 +43,7 @@ void dmrg_init()
}

void dmrg_Xgetvector( const int n, 
                      const FpType *dx_src, const int incx, 
                            FpType *dx_src, const int incx, 
                            FpType *hy_dst, const int incy )
{
#ifdef USE_MAGMA
@@ -77,7 +77,7 @@ void dmrg_Xsetvector( const int n,


void dmrg_Xgetmatrix( const int m, const int n, 
                      const FpType *dA_src, const int ldda, 
                            FpType *dA_src, const int ldda, 
                            FpType *hB_dst, const int ldb )
{
#ifdef USE_MAGMA
+3 −3
Original line number Diff line number Diff line
@@ -80,9 +80,9 @@ void setup_sparse_batch(
{
  const int idebug = 1;
  const int ialign = 32;
  const int false = 0;
  const int true = !false;
  const int use_Xlacpy = true ;
  const int lfalse = 0;
  const int ltrue = !lfalse;
  const int use_Xlacpy = ltrue ;
  const double giga = 1000.0*1000.0*1000.0;

  double total_time = -dmrg_get_wtime();