Skip to content

Commit e878d2c

Browse files
authored
Print kokkos configuration during build process (#726)
1 parent 7b7e881 commit e878d2c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

simtbx/kokkos/SConscript

+9
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,21 @@ cfg_crusher.host_name = 'crusher'
7474
cfg_crusher.env['KOKKOS_ARCH'] = "Vega90A"
7575
list_cfg.append(cfg_crusher)
7676

77+
host_message = "not found, using default settings"
7778
system_settings = cfg_default.env
7879
for cfg in list_cfg:
7980
if cfg.is_host():
8081
system_settings = cfg.env
82+
host_message = "%s (from %s)"%(cfg.host_name, cfg.host_variable)
8183
break
8284

85+
print("-"*40)
86+
print(" Kokkos configuration\n")
87+
print(" Host: " + host_message)
88+
print(" Devices: " + system_settings['KOKKOS_DEVICES'])
89+
print(" Arch: " + system_settings['KOKKOS_ARCH'])
90+
print("-"*40)
91+
8392
# libkokkos.a
8493
# call kokkos build system directly
8594
# set environment variable defaults if necessary

0 commit comments

Comments
 (0)