Closed Trzs closed 1 year ago
By simply adding an import from nanoBragg to the script, all runs correctly:
fwittwer@perlmutter$ cat test_script2.py
from simtbx import get_exascale
from simtbx.nanoBragg.tst_gauss_argchk import water
def main():
gpu_instance_type = get_exascale("gpu_instance", context='kokkos_gpu')
gpu_instance = gpu_instance_type(deviceId = 0)
if __name__=="__main__":
main()
print("OK")
fwittwer@perlmutter$ libtbx.ipython test_script2.py
OK
The missing add_noise
function is currently defined in nanoBragg_nks.cpp
and build into simtbx_nanoBragg_ext.so
.
Possible solutions:
into
libsimtbx_kokkos.so` -> non-conventional library name poses a challengeadd_noise
to nanoBraggCUDA or some other library that is already linkedHow about including "from simtbx import nanoBragg" in the file simtbx/init.py
This might be the most transparent way to accomplish the required library import.
A basic simtbx.kokkos script aborts with an undefined symbol error:
However, unit tests run without a problem.