Skip to content

Commit 18767f0

Browse files
authored
Merge pull request #229 from mattip/fix-locking
patch out extraneous lock/unlock
2 parents 0894b51 + 2f333bd commit 18767f0

File tree

2 files changed

+36
-1
lines changed

2 files changed

+36
-1
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
From ef6f97624ba9a560f64e470ec339f469865fac33 Mon Sep 17 00:00:00 2001
2+
From: Martin Kroeker <martin@ruby.chemie.uni-freiburg.de>
3+
Date: Thu, 30 Oct 2025 11:12:47 -0700
4+
Subject: [PATCH 5/6] [WIP,Testing] remove the lock around the thread shutdown
5+
function again (#5479)
6+
7+
* remove the lock around the thread shutdown function - server is locked already here
8+
---
9+
driver/others/blas_server.c | 3 ---
10+
1 file changed, 3 deletions(-)
11+
12+
diff --git a/driver/others/blas_server.c b/driver/others/blas_server.c
13+
index 3d89803a6..4a3182354 100644
14+
--- a/driver/others/blas_server.c
15+
+++ b/driver/others/blas_server.c
16+
@@ -984,8 +984,6 @@ int BLASFUNC(blas_thread_shutdown)(void){
17+
18+
int i;
19+
20+
- LOCK_COMMAND(&server_lock);
21+
-
22+
//Free buffers allocated for threads
23+
for(i=0; i<MAX_CPU_NUMBER; i++){
24+
if(blas_thread_buffer[i]!=NULL){
25+
@@ -1025,7 +1023,6 @@ int BLASFUNC(blas_thread_shutdown)(void){
26+
blas_server_avail = 0;
27+
28+
}
29+
- UNLOCK_COMMAND(&server_lock);
30+
31+
return 0;
32+
}
33+
--
34+
2.43.0
35+

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ build-backend = "setuptools.build_meta"
99
[project]
1010
name = "scipy-openblas64"
1111
# v0.3.30
12-
version = "0.3.30.0.6"
12+
version = "0.3.30.0.7"
1313
requires-python = ">=3.7"
1414
description = "Provides OpenBLAS for python packaging"
1515
readme = "README.md"

0 commit comments

Comments
 (0)