From 89dcc777569d92d5e1205869c9e3953877f66b54 Mon Sep 17 00:00:00 2001 From: Leonid Kostrykin Date: Sun, 9 Jul 2023 12:47:53 +0200 Subject: [PATCH 1/4] adds mkl requirements for faster execution --- tools/superdsm/run-superdsm.py | 10 +++++----- tools/superdsm/superdsm.xml | 2 ++ 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/tools/superdsm/run-superdsm.py b/tools/superdsm/run-superdsm.py index 67a4057e..18dff34f 100644 --- a/tools/superdsm/run-superdsm.py +++ b/tools/superdsm/run-superdsm.py @@ -13,11 +13,6 @@ import shutil import tempfile -import ray -import superdsm.automation -import superdsm.io -import superdsm.render - hyperparameters = [ ('AF_scale', float), @@ -73,6 +68,11 @@ def create_config(args): os.environ['OPENBLAS_NUM_THREADS'] = str(num_threads_per_process) os.environ['MKL_DEBUG_CPU_TYPE'] = '5' + import ray + import superdsm.automation + import superdsm.io + import superdsm.render + ray.init(num_cpus=num_processes, log_to_driver=True) with tempfile.TemporaryDirectory() as tmpdirname: diff --git a/tools/superdsm/superdsm.xml b/tools/superdsm/superdsm.xml index ade35d96..0c22a5c6 100644 --- a/tools/superdsm/superdsm.xml +++ b/tools/superdsm/superdsm.xml @@ -4,6 +4,8 @@ superdsm ray-core scikit-image + mkl + blas Date: Sun, 9 Jul 2023 12:56:54 +0200 Subject: [PATCH 2/4] moves MKL_DEBUG_CPU_TYPE env variable to xml --- tools/superdsm/run-superdsm.py | 1 - tools/superdsm/superdsm.xml | 117 +++++++++++++++++---------------- 2 files changed, 60 insertions(+), 58 deletions(-) diff --git a/tools/superdsm/run-superdsm.py b/tools/superdsm/run-superdsm.py index 18dff34f..6bef2c09 100644 --- a/tools/superdsm/run-superdsm.py +++ b/tools/superdsm/run-superdsm.py @@ -66,7 +66,6 @@ def create_config(args): os.environ['MKL_NUM_THREADS'] = str(num_threads_per_process) os.environ['OPENBLAS_NUM_THREADS'] = str(num_threads_per_process) - os.environ['MKL_DEBUG_CPU_TYPE'] = '5' import ray import superdsm.automation diff --git a/tools/superdsm/superdsm.xml b/tools/superdsm/superdsm.xml index 0c22a5c6..f11a9a54 100644 --- a/tools/superdsm/superdsm.xml +++ b/tools/superdsm/superdsm.xml @@ -1,66 +1,69 @@ - globally optimal segmentation method based on superadditivity and deformable shape models for cell nuclei in fluorescence microscopy images - + globally optimal segmentation method based on superadditivity and deformable shape models for cell nuclei in fluorescence microscopy images + superdsm ray-core scikit-image mkl blas - - - - - + + + + + + 5 + +
From 80d65809fd2bd8e1bc60dfec825a457b2bfcc874 Mon Sep 17 00:00:00 2001 From: Leonid Kostrykin Date: Sun, 9 Jul 2023 12:57:25 +0200 Subject: [PATCH 3/4] increments version of superdsm tool --- tools/superdsm/superdsm.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/superdsm/superdsm.xml b/tools/superdsm/superdsm.xml index f11a9a54..32c9b2f9 100644 --- a/tools/superdsm/superdsm.xml +++ b/tools/superdsm/superdsm.xml @@ -1,4 +1,4 @@ - + globally optimal segmentation method based on superadditivity and deformable shape models for cell nuclei in fluorescence microscopy images superdsm From dd4c3d7e4b9c27960e67a4c78f0c2a507a6392d9 Mon Sep 17 00:00:00 2001 From: Leonid Kostrykin Date: Fri, 3 Nov 2023 15:07:49 +0100 Subject: [PATCH 4/4] adds comments regarding MKL to superdsm.xml --- tools/superdsm/superdsm.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/superdsm/superdsm.xml b/tools/superdsm/superdsm.xml index e9334958..1b898f07 100644 --- a/tools/superdsm/superdsm.xml +++ b/tools/superdsm/superdsm.xml @@ -11,8 +11,8 @@ superdsm ray-core scikit-image - mkl - blas + mkl + blas - 5 + 5