Skip to content

Commit 239a243

Browse files
authored
Merge pull request DrTimothyAldenDavis#3 from suvorovrain/rvvtest
Update global value
2 parents 40a9aa5 + d856df9 commit 239a243

File tree

7 files changed

+13
-13
lines changed

7 files changed

+13
-13
lines changed

GraphBLAS/GraphBLAS/rename/GB_rename.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@
389389
#define GB_Global_calloc_function_set GM_Global_calloc_function_set
390390
#define GB_Global_cpu_features_avx2 GM_Global_cpu_features_avx2
391391
#define GB_Global_cpu_features_avx512f GM_Global_cpu_features_avx512f
392-
#define GB_Global_cpu_features_rvv GM_Global_cpu_features_rvv
392+
#define GB_Global_cpu_features_rvv_1_0 GM_Global_cpu_features_rvv_1_0
393393
#define GB_Global_cpu_features_query GM_Global_cpu_features_query
394394
#define GB_Global_flush_get GM_Global_flush_get
395395
#define GB_Global_flush_set GM_Global_flush_set

GraphBLAS/Source/global/GB_Global.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ typedef struct
131131

132132
bool cpu_features_avx2 ; // x86_64 with AVX2
133133
bool cpu_features_avx512f ; // x86_64 with AVX512f
134-
bool cpu_features_rvv ; // RISC-V with RVV1.0
134+
bool cpu_features_rvv_1_0 ; // RISC-V with RVV1.0
135135

136136
//--------------------------------------------------------------------------
137137
// CUDA (DRAFT: in progress):
@@ -216,7 +216,7 @@ static GB_Global_struct GB_Global =
216216
// CPU features
217217
.cpu_features_avx2 = false, // x86_64 with AVX2
218218
.cpu_features_avx512f = false, // x86_64 with AVX512f
219-
.cpu_features_rvv = false, // RISC-V with RVV1.0
219+
.cpu_features_rvv_1_0 = false, // RISC-V with RVV1.0
220220

221221
// CUDA environment (DRAFT: in progress)
222222
.gpu_count = 0, // # of GPUs in the system
@@ -318,12 +318,12 @@ void GB_Global_cpu_features_query (void)
318318
#if defined ( GBRVV )
319319
{
320320
// the build system asserts whether or not RVV1.0 is available
321-
GB_Global.cpu_features_rvv = (bool) (GBRVV) ;
321+
GB_Global.cpu_features_rvv_1_0 = (bool) (GBRVV) ;
322322
}
323323
#else
324324
{
325325
// RVV1.0 not available
326-
GB_Global.cpu_features_rvv = false ;
326+
GB_Global.cpu_features_rvv_1_0 = false ;
327327
}
328328
#endif
329329

@@ -337,7 +337,7 @@ void GB_Global_cpu_features_query (void)
337337

338338
GB_Global.cpu_features_avx2 = false ;
339339
GB_Global.cpu_features_avx512f = false ;
340-
GB_Global.cpu_features_rvv = false ;
340+
GB_Global.cpu_features_rvv_1_0 = false ;
341341

342342
}
343343
#endif
@@ -353,9 +353,9 @@ bool GB_Global_cpu_features_avx512f (void)
353353
return (GB_Global.cpu_features_avx512f) ;
354354
}
355355

356-
bool GB_Global_cpu_features_rvv (void)
356+
bool GB_Global_cpu_features_rvv_1_0 (void)
357357
{
358-
return (GB_Global.cpu_features_rvv) ;
358+
return (GB_Global.cpu_features_rvv_1_0) ;
359359
}
360360

361361
//------------------------------------------------------------------------------

GraphBLAS/Source/global/GB_Global.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
void GB_Global_cpu_features_query (void) ;
1818
bool GB_Global_cpu_features_avx2 (void) ;
1919
bool GB_Global_cpu_features_avx512f (void) ;
20-
bool GB_Global_cpu_features_rvv (void) ;
20+
bool GB_Global_cpu_features_rvv_1_0 (void) ;
2121

2222
void GB_Global_mode_set (GrB_Mode mode) ;
2323
GrB_Mode GB_Global_mode_get (void) ;

GraphBLAS/Source/jit_kernels/template/GB_jit_kernel_AxB_saxpy5.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ GB_JIT_GLOBAL GB_JIT_KERNEL_AXB_SAXPY5_PROTO (GB_jit_kernel) ;
9292

9393
#if GB_COMPILER_SUPPORTS_RVV1
9494

95-
GB_TARGET_AVX2 static inline void GB_AxB_saxpy5_unrolled_rvv
95+
GB_TARGET_RVV1 static inline void GB_AxB_saxpy5_unrolled_rvv
9696
(
9797
GrB_Matrix C,
9898
const GrB_Matrix A,

GraphBLAS/Source/mxm/factory/GB_AxB_saxpy5_meta.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@
146146

147147
#if GB_SEMIRING_HAS_RVV_IMPLEMENTATION
148148
#if GB_COMPILER_SUPPORTS_RVV1
149-
if (GB_Global_cpu_features_rvv ( ))
149+
if (GB_Global_cpu_features_rvv_1_0 ( ))
150150
{
151151
GB_AxB_saxpy5_unrolled_rvv (C, A, B,
152152
ntasks, nthreads, B_slice) ;

GraphBLAS/cpu_features/include/cpuinfo_riscv.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,4 @@ const char* GetRiscvFeaturesEnumName(RiscvFeaturesEnum);
6969

7070
CPU_FEATURES_END_CPP_NAMESPACE
7171

72-
#endif // CPU_FEATURES_INCLUDE_CPUINFO_RISCV_H_
72+
#endif // CPU_FEATURES_INCLUDE_CPUINFO_RISCV_H_

GraphBLAS/cpu_features/src/impl_riscv_linux.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,4 +108,4 @@ RiscvInfo GetRiscvInfo(void) {
108108
}
109109

110110
#endif // defined(CPU_FEATURES_OS_LINUX) || defined(CPU_FEATURES_OS_ANDROID)
111-
#endif // CPU_FEATURES_ARCH_RISCV
111+
#endif // CPU_FEATURES_ARCH_RISCV

0 commit comments

Comments
 (0)