1
1
/*****************************************************************************
2
- Copyright (c) 2011-2014 , The OpenBLAS Project
2
+ Copyright (c) 2011-2022 , The OpenBLAS Project
3
3
All rights reserved.
4
4
5
5
Redistribution and use in source and binary forms, with or without
@@ -13,9 +13,9 @@ modification, are permitted provided that the following conditions are
13
13
notice, this list of conditions and the following disclaimer in
14
14
the documentation and/or other materials provided with the
15
15
distribution.
16
- 3. Neither the name of the OpenBLAS project nor the names of
17
- its contributors may be used to endorse or promote products
18
- derived from this software without specific prior written
16
+ 3. Neither the name of the OpenBLAS project nor the names of
17
+ its contributors may be used to endorse or promote products
18
+ derived from this software without specific prior written
19
19
permission.
20
20
21
21
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
@@ -70,16 +70,16 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
70
70
/* or implied, of The University of Texas at Austin. */
71
71
/*********************************************************************/
72
72
73
- #define CPU_UNKNOWN 0
74
- #define CPU_C910V 1
73
+ #define CPU_GENERIC 0
74
+ #define CPU_C910V 1
75
75
76
76
static char * cpuname [] = {
77
- "UNKOWN " ,
77
+ "RISCV64_GENERIC " ,
78
78
"C910V"
79
79
};
80
80
81
81
int detect (void ){
82
- return CPU_UNKNOWN ;
82
+ return CPU_GENERIC ;
83
83
}
84
84
85
85
char * get_corename (void ){
@@ -98,7 +98,7 @@ void get_subdirname(void){
98
98
}
99
99
100
100
void get_cpuconfig (void ){
101
- printf ("#define UNKNOWN \n" );
101
+ printf ("#define %s \n" , cpuname [ detect ()] );
102
102
printf ("#define L1_DATA_SIZE 65536\n" );
103
103
printf ("#define L1_DATA_LINESIZE 32\n" );
104
104
printf ("#define L2_SIZE 512488\n" );
0 commit comments