Blame thirdparty/openblas/xianyi-OpenBLAS-e6e87a2/benchmark/cula_wrapper.c

kusano 2b45e8
#include <stdio.h></stdio.h>
kusano 2b45e8
#include "culapack.h"
kusano 2b45e8
kusano 2b45e8
static int initialized = 0;
kusano 2b45e8
kusano 2b45e8
int sgetrf_(int *m, int *n, float  *a, int *lda, int *ipiv, int *info) {
kusano 2b45e8
kusano 2b45e8
  if (!initialized)  {
kusano 2b45e8
    culaInitialize();
kusano 2b45e8
    initialized = 1;
kusano 2b45e8
  }
kusano 2b45e8
kusano 2b45e8
  *info = culaSgetrf(*m, *m, a, *lda, ipiv);
kusano 2b45e8
kusano 2b45e8
  return 0;
kusano 2b45e8
}
kusano 2b45e8
kusano 2b45e8
int cgetrf_(int *m, int *n, float  *a, int *lda, int *ipiv, int *info) {
kusano 2b45e8
kusano 2b45e8
  if (!initialized)  {
kusano 2b45e8
    culaInitialize();
kusano 2b45e8
    initialized = 1;
kusano 2b45e8
  }
kusano 2b45e8
kusano 2b45e8
  *info = culaCgetrf(*m, *m, (culaFloatComplex *)a, *lda, ipiv);
kusano 2b45e8
kusano 2b45e8
  return 0;
kusano 2b45e8
}