Skip to content

Commit 5e485af

Browse files
author
Theofilos Manitaras
committed
Use floor division in likwid test
1 parent 8bf7f78 commit 5e485af

File tree

1 file changed

+3
-3
lines changed
  • cscs-checks/microbenchmarks/cpu/likwid

1 file changed

+3
-3
lines changed

cscs-checks/microbenchmarks/cpu/likwid/likwid.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ def set_exec_opts(self):
108108
self.data_size = self.system_cache_sizes[partname][self.mem_level]
109109
self.num_cpus_per_task = self.system_num_cpus[partname]
110110
numa_domains = self.system_numa_domains[partname]
111-
num_cpu_domain = self.num_cpus_per_task / (len(numa_domains) *
112-
self.num_tasks_per_core)
111+
num_cpu_domain = self.num_cpus_per_task // (len(numa_domains) *
112+
self.num_tasks_per_core)
113113
# result for daint:mc: '-w S0:100MB:18:1:2 -w S1:100MB:18:1:2'
114114
# format: -w domain:data_size:nthreads:chunk_size:stride
115115
# chunk_size and stride affect which cpus from <domain> are selected
@@ -145,7 +145,7 @@ def set_exec_opts(self):
145145
self.num_cpus_per_task = self.system_num_cpus[partname]
146146
numa_domains = self.system_numa_domains[partname]
147147

148-
num_cpu_domain = (self.num_cpus_per_task /
148+
num_cpu_domain = (self.num_cpus_per_task //
149149
(len(numa_domains) * self.num_tasks_per_core))
150150

151151
# daint:mc: '-w S0:100MB:18:1:2-0:S1 -w S1:100MB:18:1:2-0:S0'

0 commit comments

Comments
 (0)