Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sagemath
GitHub Repository: sagemath/sagesmc
Path: blob/master/build/pkgs/atlas/patches/do_not_force_mutex.patch
8818 views
1
Always use assembly over mutex since the mutex version fails to build
2
a shared library. See #15045 for details.
3
4
diff --git a/tune/threads/tune_count.c b/tune/threads/tune_count.c
5
index f09717f..4dc3fde 100644
6
--- a/tune/threads/tune_count.c
7
+++ b/tune/threads/tune_count.c
8
@@ -241,8 +241,8 @@ int main(int nargs, char **args)
9
*/
10
if (tmut < tldec*1.02)
11
{
12
- printf("\nNO REAL ADVANTAGE TO ASSEMBLY, FORCING USE OF MUTEX\n");
13
- ATL_assert(!system("make iForceUseMutex"));
14
+ printf("\nNO REAL ADVANTAGE TO ASSEMBLY OVER MUTEX\n");
15
+ printf("\nASSEMBLY/MUTEX ratio is %.2f, but we'll stick with assembly anyway\n", tldec/tmut);
16
}
17
}
18
free(timearr);
19
20