Skip to content

Commit b19a0c3

Browse files
author
OutlyingWest
committed
Jumper evironment variables names enriched by JUMPER_* prefix
1 parent 913df54 commit b19a0c3

5 files changed

Lines changed: 31 additions & 25 deletions

File tree

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,13 +155,13 @@ When using persistence in `disk` mode, user can also define directory to which s
155155
```
156156
%env SCOREP_KERNEL_PERSISTENCE_DIR=path/to/dir
157157
```
158-
To see the detailed report for marshalling steps - `MARSHALLING_DETAILED_REPORT` environment variable can be set.
158+
To see the detailed report for marshalling steps - `JUMPER_MARSHALLING_DETAILED_REPORT` environment variable can be set.
159159
```
160-
%env MARSHALLING_DETAILED_REPORT=1
160+
%env JUMPER_MARSHALLING_DETAILED_REPORT=1
161161
```
162-
You can disable visual animations shown during long-running tasks by setting the `DISABLE_PROCESSING_ANIMATIONS` environment variable.
162+
You can disable visual animations shown during long-running tasks by setting the `JUMPER_DISABLE_PROCESSING_ANIMATIONS` environment variable.
163163
```
164-
%env DISABLE_PROCESSING_ANIMATIONS=1
164+
%env JUMPER_DISABLE_PROCESSING_ANIMATIONS=1
165165
```
166166

167167
`%%execute_with_scorep`

examples/ExampleBasic.ipynb

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -472,10 +472,10 @@
472472
]
473473
},
474474
{
475-
"metadata": {},
476475
"cell_type": "code",
477-
"outputs": [],
478476
"execution_count": null,
477+
"metadata": {},
478+
"outputs": [],
479479
"source": [
480480
"import time\n",
481481
"import numpy as np\n",
@@ -491,27 +491,33 @@
491491
]
492492
},
493493
{
494-
"metadata": {},
495494
"cell_type": "markdown",
496-
"source": "Enable marshalling detailed report for each step."
495+
"metadata": {},
496+
"source": [
497+
"Enable marshalling detailed report for each step."
498+
]
497499
},
498500
{
499-
"metadata": {},
500501
"cell_type": "code",
501-
"outputs": [],
502502
"execution_count": null,
503-
"source": "%env MARSHALLING_DETAILED_REPORT=1"
503+
"metadata": {},
504+
"outputs": [],
505+
"source": [
506+
"%env JUMPER_MARSHALLING_DETAILED_REPORT=1"
507+
]
504508
},
505509
{
506-
"metadata": {},
507510
"cell_type": "markdown",
508-
"source": "Run cell with Score-P"
511+
"metadata": {},
512+
"source": [
513+
"Run cell with Score-P"
514+
]
509515
},
510516
{
511-
"metadata": {},
512517
"cell_type": "code",
513-
"outputs": [],
514518
"execution_count": null,
519+
"metadata": {},
520+
"outputs": [],
515521
"source": [
516522
"%%execute_with_scorep\n",
517523
"big_array\n",
@@ -521,14 +527,14 @@
521527
],
522528
"metadata": {
523529
"kernelspec": {
524-
"display_name": "scorep-python",
530+
"display_name": "JUmPER",
525531
"language": "python",
526-
"name": "scorep-python"
532+
"name": "jumper"
527533
},
528534
"language_info": {
529535
"file_extension": ".py",
530536
"mimetype": "text/plain",
531-
"name": "Any text"
537+
"name": "python"
532538
}
533539
},
534540
"nbformat": 4,

src/jumper/userpersistence.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ def parse(self, code, mode):
227227
self.jupyter_variables.extend(user_variables)
228228

229229
def set_dump_report_level(self):
230-
self.is_dump_detailed_report = int(os.getenv('MARSHALLING_DETAILED_REPORT', '0'))
230+
self.is_dump_detailed_report = int(os.getenv('JUMPER_MARSHALLING_DETAILED_REPORT', '0'))
231231

232232

233233
def dump_runtime(
@@ -450,7 +450,7 @@ def stop(self, done_message='Done.'):
450450

451451

452452
def create_busy_spinner(lock=None):
453-
is_enabled = os.getenv("DISABLE_PROCESSING_ANIMATIONS") != "1"
453+
is_enabled = os.getenv("JUMPER_DISABLE_PROCESSING_ANIMATIONS") != "1"
454454
if is_enabled:
455455
return BusySpinner(lock)
456456
else:

src/parallel_marshall/parallel_marshall.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@
1010
# mode is automatically determined by the file object that is passed for
1111
# dumping
1212
mode = ""
13-
backend = str(os.environ.get("PARALLEL_MARSHALL_BACKEND", "dill"))
14-
if os.environ.get("PARALLEL_MARSHALL_NWORKERS"):
13+
backend = str(os.environ.get("JUMPER_PARALLEL_MARSHALL_BACKEND", "dill"))
14+
if os.environ.get("JUMPER_PARALLEL_MARSHALL_NWORKERS"):
1515
workers = min(
16-
int(os.environ.get("PARALLEL_MARSHALL_NWORKERS")),
16+
int(os.environ.get("JUMPER_PARALLEL_MARSHALL_NWORKERS")),
1717
multiprocessing.cpu_count(),
1818
multiprocessing.cpu_count(),
1919
)
2020
else:
2121
workers = multiprocessing.cpu_count()
22-
debug = int(os.environ.get("PARALLEL_MARSHALL_DEBUG", 20))
22+
debug = int(os.environ.get("JUMPER_PARALLEL_MARSHALL_DEBUG", 20))
2323

2424
logger = logging.getLogger(__name__)
2525
logging.basicConfig(filename="parallel_marshall.log", level=logging.INFO)

tests/test_kernel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class KernelTests(jkt.KernelTests):
1717

1818
@classmethod
1919
def setUpClass(cls) -> None:
20-
os.environ["DISABLE_PROCESSING_ANIMATIONS"] = "1"
20+
os.environ["JUMPER_DISABLE_PROCESSING_ANIMATIONS"] = "1"
2121
logging_config.LOGGING['loggers']['kernel']['level'] = 'WARNING'
2222
logging.config.dictConfig(logging_config.LOGGING)
2323

0 commit comments

Comments
 (0)