Skip to content

Commit

Permalink
Fixed #13. Fixed blasint undefined bug in <cblas.h> file.
Browse files Browse the repository at this point in the history
  • Loading branch information
xianyi committed Mar 24, 2011
1 parent 141091f commit 5e7f29b
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ OpenBLAS ChangeLog
Version 0.1 alpha2(in development)

common:
*
* Fixed blasint undefined bug in <cblas.h> file. Other software
could include this header successfully(Refs issue #13 on github)
x86/x86_64:
*
MIPS64:
Expand Down
7 changes: 6 additions & 1 deletion Makefile.system
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ ifdef TARGET
GETARCH_FLAGS += -DFORCE_$(TARGET)
endif

ifdef INTERFACE64
GETARCH_FLAGS += -DUSE64BITINT
endif

# This operation is expensive, so execution should be once.
ifndef GOTOBLAS_MAKEFILE
export GOTOBLAS_MAKEFILE = 1
Expand Down Expand Up @@ -489,7 +493,8 @@ endif

ifdef BINARY64
ifdef INTERFACE64
CCOMMON_OPT += -DUSE64BITINT
CCOMMON_OPT +=
#-DUSE64BITINT
endif
endif

Expand Down
3 changes: 3 additions & 0 deletions cblas.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#ifndef CBLAS_H
#define CBLAS_H

#include <stddef.h>
#include "common.h"

#define CBLAS_INDEX size_t

enum CBLAS_ORDER {CblasRowMajor=101, CblasColMajor=102};
Expand Down
4 changes: 4 additions & 0 deletions getarch_2nd.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ int main(int argc, char **argv) {
printf("#define DLOCAL_BUFFER_SIZE\t%ld\n", (DGEMM_DEFAULT_Q * DGEMM_DEFAULT_UNROLL_N * 2 * 1 * sizeof(double)));
printf("#define CLOCAL_BUFFER_SIZE\t%ld\n", (CGEMM_DEFAULT_Q * CGEMM_DEFAULT_UNROLL_N * 4 * 2 * sizeof(float)));
printf("#define ZLOCAL_BUFFER_SIZE\t%ld\n", (ZGEMM_DEFAULT_Q * ZGEMM_DEFAULT_UNROLL_N * 2 * 2 * sizeof(double)));

#ifdef USE64BITINT
printf("#define USE64BITINT\n");
#endif
}

return 0;
Expand Down

0 comments on commit 5e7f29b

Please sign in to comment.