Merge branch 'develop' into atomic
authorMartin Kroeker <martin@ruby.chemie.uni-freiburg.de>
Sat, 7 Apr 2018 10:09:39 +0000 (12:09 +0200)
committerGitHub <noreply@github.com>
Sat, 7 Apr 2018 10:09:39 +0000 (12:09 +0200)
1  2 
lapack/getrf/getrf_parallel.c

@@@ -225,11 -236,11 +245,12 @@@ static int inner_advanced_thread(blas_a
    FLOAT *sbb= sb;
  
    blasint *ipiv = (blasint *)args -> c;
 -
 -   BLASLONG jw;
 -  
++  BLASLONG jw;
 +#if _STDC_VERSION__ >= 201112L  
 +  _Atomic BLASLONG *flag = (_Atomic BLASLONG *)args -> d;
 +#else
    volatile BLASLONG *flag = (volatile BLASLONG *)args -> d;
 -
 +#endif
    if (args -> a == NULL) {
      TRSM_ILTCOPY(k, k, (FLOAT *)args -> b, lda, 0, sb);
      sbb = (FLOAT *)((((BLASULONG)(sb + k * k * COMPSIZE) + GEMM_ALIGN) & ~GEMM_ALIGN) + GEMM_OFFSET_B);