File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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"
Original file line number Diff line number Diff line change 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
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():
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-
Original file line number Diff line number Diff line change 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-
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-
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-
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"
You can’t perform that action at this time.
0 commit comments