Fixed a bug when compiling dynamic ARCH x86 in GotoBLAS2.
authorXianyi Zhang <traits.zhang@gmail.com>
Mon, 24 Jan 2011 16:04:17 +0000 (16:04 +0000)
committerXianyi Zhang <traits.zhang@gmail.com>
Mon, 24 Jan 2011 16:04:17 +0000 (16:04 +0000)
driver/others/dynamic.c

index eef3db9..4e27717 100644 (file)
@@ -198,9 +198,9 @@ void gotoblas_dynamic_init(void) {
   gotoblas = get_coretype();
   
 #ifdef ARCH_X86
-  if (gotoblas == NULL) gotoblas = gotoblas_KATMAI;
+  if (gotoblas == NULL) gotoblas = &gotoblas_KATMAI;
 #else
-  if (gotoblas == NULL) gotoblas = gotoblas_PRESCOTT;
+  if (gotoblas == NULL) gotoblas = &gotoblas_PRESCOTT;
 #endif
   
   if (gotoblas && gotoblas -> init) {