I was running into an issue with the digital system for LWA-NA throwing a segfault when bifrost.memory.memset was called using a bifrost.ndarray that lived in cuda space. I was able to get around it by switching to bifrost.ndarray.memset_array but I did look into the underlying problem. It seems that memset is using a possibly outdated way to determine where the data lives and was always (?) treating the array like it lived in system. I guess there are two things here:
Fix memset to use a better way to determine the memory space.
I was running into an issue with the digital system for LWA-NA throwing a segfault when
bifrost.memory.memset
was called using abifrost.ndarray
that lived incuda
space. I was able to get around it by switching tobifrost.ndarray.memset_array
but I did look into the underlying problem. It seems thatmemset
is using a possibly outdated way to determine where the data lives and was always (?) treating the array like it lived insystem
. I guess there are two things here:memset
to use a better way to determine the memory space.memset
if we havememset_array
?