anagainaru / ADIOS2-addons

Private repo to keep track of my changes to ADIOS2
2 stars 1 forks source link

Add code for streaming using `Kokkos::View` #147

Closed anagainaru closed 1 year ago

anagainaru commented 1 year ago

To test the GPU buffers streaming

    <io name="writer">
        <engine type="SST">
            <parameter key="MarshalMethod" value="BP"/>
        </engine>
    </io>

Possible values: BP, BP5, FFS

anagainaru commented 1 year ago

Code can be run to test memory spaces.

On Summit:

Kokkos::View ERROR: attempt to access inaccessible memory space (label="simData")
Backtrace:
                 Kokkos::Impl::save_stacktrace() [0x200001db3df4]
Kokkos::Impl::traceback_callstack(std::ostream&) [0x200001da6c14]
           Kokkos::Impl::host_abort(char const*) [0x200001da6c88]
                                                     [0x1000b540]
                                                     [0x10018c18]
                                                     [0x10012c70]
                                                     [0x100077b8]
                                                 [0x200002494078]
                               __libc_start_main [0x200002494264]
[g35n02:372880] *** Process received signal ***
[g35n02:372880] Signal: Aborted (6)
[g35n02:372880] Signal code:  (-6)
[g35n02:372880] [ 0] linux-vdso64.so.1(__kernel_sigtramp_rt64+0x0)[0x2000000504d8]
[g35n02:372880] [ 1] /lib64/power9/libc.so.6(gsignal+0xd8)[0x2000024b3618]
[g35n02:372880] [ 2] /lib64/power9/libc.so.6(abort+0x164)[0x200002493a2c]
[g35n02:372880] [ 3] /ccs/home/againaru/adios/ADIOS2-clean/install-kokkos-summit/lib64/libkokkoscore.so.4.0(_ZN6Kokkos4Impl10host_abortEPKc+0x40)[0x200001da6c90]
[g35n02:372880] [ 4] /ccs/home/againaru/adios/ADIOS2-addons/DataStreaming/kokkos_code/build/sstWriter[0x1000b540]
[g35n02:372880] [ 5] /ccs/home/againaru/adios/ADIOS2-addons/DataStreaming/kokkos_code/build/sstWriter[0x10018c18]
[g35n02:372880] [ 6] /ccs/home/againaru/adios/ADIOS2-addons/DataStreaming/kokkos_code/build/sstWriter[0x10012c70]
[g35n02:372880] [ 7] /ccs/home/againaru/adios/ADIOS2-addons/DataStreaming/kokkos_code/build/sstWriter[0x100077b8]
[g35n02:372880] [ 8] /lib64/power9/libc.so.6(+0x24078)[0x200002494078]
[g35n02:372880] [ 9] /lib64/power9/libc.so.6(__libc_start_main+0xb4)[0x200002494264]
[g35n02:372880] *** End of error message ***