Skip to content

Commit eece0df

Browse files
authored
Merge pull request #3781 from martin-frbg/issue3779
Fix building with only a subset of variable types on Windows
2 parents a84a8a7 + db50ab4 commit eece0df

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

driver/others/blas_server_win32.c

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,12 +278,15 @@ static DWORD WINAPI blas_thread_server(void *arg){
278278
} else
279279
#endif
280280
if ((queue -> mode & BLAS_PREC) == BLAS_DOUBLE){
281+
#ifdef BUILD_DOUBLE
281282
sb = (void *)(((BLASLONG)sa + ((DGEMM_P * DGEMM_Q * sizeof(double)
282283
+ GEMM_ALIGN) & ~GEMM_ALIGN)) + GEMM_OFFSET_B);
283-
284+
#endif
284285
} else if ((queue -> mode & BLAS_PREC) == BLAS_SINGLE) {
286+
#ifdef BUILD_SINGLE
285287
sb = (void *)(((BLASLONG)sa + ((SGEMM_P * SGEMM_Q * sizeof(float)
286288
+ GEMM_ALIGN) & ~GEMM_ALIGN)) + GEMM_OFFSET_B);
289+
#endif
287290
} else {
288291
/* Other types in future */
289292
}
@@ -295,11 +298,15 @@ static DWORD WINAPI blas_thread_server(void *arg){
295298
} else
296299
#endif
297300
if ((queue -> mode & BLAS_PREC) == BLAS_DOUBLE){
301+
#ifdef BUILD_COMPLEX16
298302
sb = (void *)(((BLASLONG)sa + ((ZGEMM_P * ZGEMM_Q * 2 * sizeof(double)
299303
+ GEMM_ALIGN) & ~GEMM_ALIGN)) + GEMM_OFFSET_B);
304+
#endif
300305
} else if ((queue -> mode & BLAS_PREC) == BLAS_SINGLE) {
306+
#ifdef BUILD_COMPLEX
301307
sb = (void *)(((BLASLONG)sa + ((CGEMM_P * CGEMM_Q * 2 * sizeof(float)
302308
+ GEMM_ALIGN) & ~GEMM_ALIGN)) + GEMM_OFFSET_B);
309+
#endif
303310
} else {
304311
/* Other types in future */
305312
}

0 commit comments

Comments
 (0)