Skip to content

Commit 186368d

Browse files
authored
Fix compilation with CLANG
1 parent efa72a6 commit 186368d

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

driver/others/dynamic_power.c

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,14 @@ char *gotoblas_corename(void) {
4040
return corename[0];
4141
}
4242

43-
#ifdef C_PGI
43+
#if defined(__clang__)
44+
static int __builtin_cpu_supports(char* arg)
45+
{
46+
return 0;
47+
}
48+
#endif
49+
50+
#if defined(C_PGI) || defined(__clang__)
4451
/*
4552
* NV HPC compilers do not yet implement __builtin_cpu_is().
4653
* Fake a version here for use in the CPU detection code below.

0 commit comments

Comments
 (0)