Skip to content

Commit bee42f3

Browse files
author
OutlyingWest
committed
temporary solution to taking into account \r\r lines
1 parent 45e1418 commit bee42f3

3 files changed

Lines changed: 27 additions & 0 deletions

File tree

tests/kernel/multicell.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,34 @@
2424
-
2525
- "%%finalize_multicellmode"
2626
- - "\0"
27+
- ""
2728
- "Executing cell 0\n"
29+
- ""
2830
- "with scorep.instrumenter.enable():\n"
31+
- ""
2932
- " c = np.sum(c_mtx)\n"
33+
- ""
3034
- "c_vec = np.arange(b, c)\n"
35+
- ""
3136
- "----------------------------------\n"
37+
- ""
3238
- "\n"
39+
- ""
3340
- "\n"
41+
- ""
3442
- "Executing cell 1\n"
43+
- ""
3544
- "print('c =', c)\n"
45+
- ""
3646
- "print('Sum(c_vec) =', c_vec.sum())\n"
47+
- ""
3748
- "----------------------------------\n"
49+
- ""
3850
- "c = 350\n"
51+
- ""
3952
- "Sum(c_vec) = 61030\n"
53+
- ""
4054
- "\n"
55+
- ""
4156
- "\n"
4257
- "Instrumentation results can be found in test_kernel_tmp/scorep-traces"

tests/kernel/persistence.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import numpy as np
88
def f(x):
99
return x**2
10+
a, b = 5, 10
1011
a_vec = np.arange(a)
1112
b_vec = np.arange(a, b)
1213
@@ -17,6 +18,7 @@
1718
- |-
1819
%%execute_with_scorep
1920
import pandas as pd
21+
import scorep
2022
def g(x):
2123
return np.log2(x)
2224
with scorep.instrumenter.enable():
@@ -33,9 +35,13 @@
3335
os.environ['SUBPROCESS_VAR'] = 'SUBPROCESS'
3436
sys.path.append('/new/subprocess/path')
3537
- - "\0"
38+
- ""
3639
- "Inner product of a_vec and b_vec = 80\n"
40+
- ""
3741
- "f(4) = 16\n"
42+
- ""
3843
- "JUPYTER_VAR = JUPYTER\n"
44+
- ""
3945
- "'/new/jupyter/path' found in sys.path\n"
4046
- "Instrumentation results can be found in test_kernel_tmp/scorep-traces"
4147
-

tests/kernel/scorep_exec.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,12 @@
88
- |-
99
%%execute_with_scorep
1010
import scorep
11+
a = 3
12+
b = 8
1113
with scorep.instrumenter.enable():
1214
print('a - b =', a - b)
1315
- - "\0"
16+
- ""
1417
- "a - b = -5\n"
1518
- "Instrumentation results can be found in test_kernel_tmp/scorep-traces"
1619
-
@@ -26,6 +29,7 @@
2629
with scorep.instrumenter.enable():
2730
print('a - b =', a - b)
2831
- - "\0"
32+
- ""
2933
- "a - b = -5\n"
3034
- "Instrumentation results can be found in test_kernel_tmp/scorep-traces"
3135
-
@@ -41,6 +45,7 @@
4145
with scorep.instrumenter.enable():
4246
print('a - b =', a - b)
4347
- - "\0"
48+
- ""
4449
- "a - b = -5\n"
4550
- "Instrumentation results can be found in test_kernel_tmp/scorep-traces"
4651
-
@@ -56,5 +61,6 @@
5661
with scorep.instrumenter.enable():
5762
print('a - b =', a - b)
5863
- - "\0"
64+
- ""
5965
- "a - b = -5\n"
6066
- "Instrumentation results can be found in test_kernel_tmp/scorep-traces"

0 commit comments

Comments
 (0)