Skip to content

Commit

Permalink
Fix typos, guards
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamaludin Mohd Yusof committed Sep 12, 2023
1 parent 7c2bb1e commit eca61c6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/C-interface/dense/bml_diagonalize_dense.c
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ bml_diagonalize_dense_gpu_double_real(
#pragma omp target enter data map(alloc:evecs[0:N*N])
#pragma omp target enter data map(alloc:evals[0:N])

#ifdef MKL_GOU_DEBUG
#ifdef MKL_GPU_DEBUG
// pull from GPU
#pragma omp target update from(A_matrix[0:N*N])
printf("Checking A matrix values \n");
Expand Down Expand Up @@ -550,7 +550,7 @@ bml_diagonalize_dense_gpu_double_real(
dsyev("V", "U", &N, evecs, &N, evals, work, &lwork, &info);
#endif // BML_SYEVD

#ifdef MKL_GPU
#ifdef MKL_GPU_DEBUG
// pull evecs, evals back from GPU
#pragma omp target update from(evecs[0:N*N])
#pragma omp target update from(evals[0:N])
Expand All @@ -568,7 +568,7 @@ bml_diagonalize_dense_gpu_double_real(
{
printf("%d, %f \n", i, evals[i]);
}
#endif
#endif // DEBUG

// need typed_eigenvalues on CPU
#pragma omp target update from(evals[0:N])
Expand Down

0 comments on commit eca61c6

Please sign in to comment.