#!/bin/bash -euxv
module load cpu

# cd /pscratch/sd/s/seshu/gb2024/legion_s3d_tdb/legion/language/build/runtime && /usr/bin/cmake -E cmake_link_script CMakeFiles/realm_cuhook.dir/link.txt --verbose=1
# /opt/cray/pe/craype/2.7.30/bin/CC -fPIC  -march=native -O2 -shared -Wl,-soname,librealm_cuhook.so -o ../lib/librealm_cuhook.so CMakeFiles/realm_cuhook.dir/realm/cuda/cuda_hook.cc.o


# cd /pscratch/sd/s/seshu/gb2024/legion_s3d_tdb/legion/language/build/runtime && /global/common/software/spackecp/perlmutter/e4s-23.08/94543/spack/opt/spack/linux-sles15-zen3/gcc-12.3.0/cmake-3.26.3-f2fvyycywwkc5onagv2mdyimlcn7kgd5/bin/cmake -E cmake_link_script CMakeFiles/RealmRuntime.dir/link.txt --verbose=1

# cd /pscratch/sd/s/seshu/gb2024/legion_s3d_tdb/legion/language/build/runtime && /usr/bin/cmake -E cmake_link_script CMakeFiles/RealmRuntime.dir/link.txt --verbose=1
# /opt/cray/pe/craype/2.7.30/bin/CC -fPIC  -march=native -O2 -shared -Wl,-soname,librealm.so.1 -o ../lib/librealm.so.1 CMakeFiles/RealmRuntime.dir/realm/transfer/lowlevel_disk.cc.o CMakeFiles/RealmRuntime.dir/realm/transfer/address_list.cc.o CMakeFiles/RealmRuntime.dir/realm/transfer/channel.cc.o CMakeFiles/RealmRuntime.dir/realm/transfer/channel_disk.cc.o CMakeFiles/RealmRuntime.dir/realm/transfer/transfer.cc.o CMakeFiles/RealmRuntime.dir/realm/transfer/lowlevel_dma.cc.o CMakeFiles/RealmRuntime.dir/realm/transfer/ib_memory.cc.o CMakeFiles/RealmRuntime.dir/realm/deppart/byfield.cc.o CMakeFiles/RealmRuntime.dir/realm/deppart/partitions.cc.o CMakeFiles/RealmRuntime.dir/realm/deppart/setops.cc.o CMakeFiles/RealmRuntime.dir/realm/deppart/sparsity_impl.cc.o CMakeFiles/RealmRuntime.dir/realm/bgwork.cc.o CMakeFiles/RealmRuntime.dir/realm/event_impl.cc.o CMakeFiles/RealmRuntime.dir/realm/faults.cc.o CMakeFiles/RealmRuntime.dir/realm/idx_impl.cc.o CMakeFiles/RealmRuntime.dir/realm/inst_impl.cc.o CMakeFiles/RealmRuntime.dir/realm/inst_layout.cc.o CMakeFiles/RealmRuntime.dir/realm/machine_impl.cc.o CMakeFiles/RealmRuntime.dir/realm/mem_impl.cc.o CMakeFiles/RealmRuntime.dir/realm/metadata.cc.o CMakeFiles/RealmRuntime.dir/realm/module.cc.o CMakeFiles/RealmRuntime.dir/realm/module_config.cc.o CMakeFiles/RealmRuntime.dir/realm/nodeset.cc.o CMakeFiles/RealmRuntime.dir/realm/numa/numa_module.cc.o CMakeFiles/RealmRuntime.dir/realm/numa/numasysif.cc.o CMakeFiles/RealmRuntime.dir/realm/operation.cc.o CMakeFiles/RealmRuntime.dir/realm/proc_impl.cc.o CMakeFiles/RealmRuntime.dir/realm/procset/procset_module.cc.o CMakeFiles/RealmRuntime.dir/realm/repl_heap.cc.o CMakeFiles/RealmRuntime.dir/realm/rsrv_impl.cc.o CMakeFiles/RealmRuntime.dir/realm/runtime_impl.cc.o CMakeFiles/RealmRuntime.dir/realm/sampling_impl.cc.o CMakeFiles/RealmRuntime.dir/realm/subgraph_impl.cc.o CMakeFiles/RealmRuntime.dir/realm/tasks.cc.o CMakeFiles/RealmRuntime.dir/realm/threads.cc.o CMakeFiles/RealmRuntime.dir/realm/shm.cc.o CMakeFiles/RealmRuntime.dir/realm/cuda/cuda_module.cc.o CMakeFiles/RealmRuntime.dir/realm/cuda/cuda_internal.cc.o CMakeFiles/RealmRuntime.dir/realm/cuda/cuda_access.cc.o CMakeFiles/RealmRuntime.dir/realm/openmp/openmp_module.cc.o CMakeFiles/RealmRuntime.dir/realm/openmp/openmp_threadpool.cc.o CMakeFiles/RealmRuntime.dir/realm/openmp/openmp_api.cc.o CMakeFiles/RealmRuntime.dir/realm/gasnetex/gasnetex_module.cc.o CMakeFiles/RealmRuntime.dir/realm/gasnetex/gasnetex_internal.cc.o CMakeFiles/RealmRuntime.dir/realm/gasnetex/gasnetex_handlers.cc.o CMakeFiles/RealmRuntime.dir/realm/activemsg.cc.o CMakeFiles/RealmRuntime.dir/realm/network.cc.o CMakeFiles/RealmRuntime.dir/realm/cmdline.cc.o CMakeFiles/RealmRuntime.dir/realm/codedesc.cc.o CMakeFiles/RealmRuntime.dir/realm/logging.cc.o CMakeFiles/RealmRuntime.dir/realm/mutex.cc.o CMakeFiles/RealmRuntime.dir/realm/profiling.cc.o CMakeFiles/RealmRuntime.dir/realm/timers.cc.o CMakeFiles/RealmRuntime.dir/realm/utils.cc.o CMakeFiles/RealmRuntime.dir/realm/deppart/image_1_1.cc.o CMakeFiles/RealmRuntime.dir/realm/deppart/preimage_1_1.cc.o CMakeFiles/RealmRuntime.dir/realm/deppart/byfield_1_1.cc.o CMakeFiles/RealmRuntime.dir/realm/deppart/image_1_2.cc.o CMakeFiles/RealmRuntime.dir/realm/deppart/preimage_1_2.cc.o CMakeFiles/RealmRuntime.dir/realm/deppart/byfield_1_2.cc.o CMakeFiles/RealmRuntime.dir/realm/deppart/image_1_3.cc.o CMakeFiles/RealmRuntime.dir/realm/deppart/preimage_1_3.cc.o CMakeFiles/RealmRuntime.dir/realm/deppart/byfield_1_3.cc.o CMakeFiles/RealmRuntime.dir/realm/deppart/image_1_4.cc.o CMakeFiles/RealmRuntime.dir/realm/deppart/preimage_1_4.cc.o CMakeFiles/RealmRuntime.dir/realm/deppart/byfield_1_4.cc.o CMakeFiles/RealmRuntime.dir/realm/deppart/image_1_5.cc.o CMakeFiles/RealmRuntime.dir/realm/deppart/preimage_1_5.cc.o CMakeFiles/RealmRuntime.dir/realm/deppart/byfield_1_5.cc.o CMakeFiles/RealmRuntime.dir/realm/deppart/image_2_1.cc.o CMakeFiles/RealmRuntime.dir/realm/deppart/preimage_2_1.cc.o CMakeFiles/RealmRuntime.dir/realm/deppart/byfield_2_1.cc.o CMakeFiles/RealmRuntime.dir/realm/deppart/image_2_2.cc.o CMakeFiles/RealmRuntime.dir/realm/deppart/preimage_2_2.cc.o CMakeFiles/RealmRuntime.dir/realm/deppart/byfield_2_2.cc.o CMakeFiles/RealmRuntime.dir/realm/deppart/image_2_3.cc.o CMakeFiles/RealmRuntime.dir/realm/deppart/preimage_2_3.cc.o CMakeFiles/RealmRuntime.dir/realm/deppart/byfield_2_3.cc.o CMakeFiles/RealmRuntime.dir/realm/deppart/image_2_4.cc.o CMakeFiles/RealmRuntime.dir/realm/deppart/preimage_2_4.cc.o CMakeFiles/RealmRuntime.dir/realm/deppart/byfield_2_4.cc.o CMakeFiles/RealmRuntime.dir/realm/deppart/image_2_5.cc.o CMakeFiles/RealmRuntime.dir/realm/deppart/preimage_2_5.cc.o CMakeFiles/RealmRuntime.dir/realm/deppart/byfield_2_5.cc.o CMakeFiles/RealmRuntime.dir/realm/deppart/image_3_1.cc.o CMakeFiles/RealmRuntime.dir/realm/deppart/preimage_3_1.cc.o CMakeFiles/RealmRuntime.dir/realm/deppart/byfield_3_1.cc.o CMakeFiles/RealmRuntime.dir/realm/deppart/image_3_2.cc.o CMakeFiles/RealmRuntime.dir/realm/deppart/preimage_3_2.cc.o CMakeFiles/RealmRuntime.dir/realm/deppart/byfield_3_2.cc.o CMakeFiles/RealmRuntime.dir/realm/deppart/image_3_3.cc.o CMakeFiles/RealmRuntime.dir/realm/deppart/preimage_3_3.cc.o CMakeFiles/RealmRuntime.dir/realm/deppart/byfield_3_3.cc.o CMakeFiles/RealmRuntime.dir/realm/deppart/image_3_4.cc.o CMakeFiles/RealmRuntime.dir/realm/deppart/preimage_3_4.cc.o CMakeFiles/RealmRuntime.dir/realm/deppart/byfield_3_4.cc.o CMakeFiles/RealmRuntime.dir/realm/deppart/image_3_5.cc.o CMakeFiles/RealmRuntime.dir/realm/deppart/preimage_3_5.cc.o CMakeFiles/RealmRuntime.dir/realm/deppart/byfield_3_5.cc.o CMakeFiles/RealmRuntime.dir/realm/deppart/image_4_1.cc.o CMakeFiles/RealmRuntime.dir/realm/deppart/preimage_4_1.cc.o CMakeFiles/RealmRuntime.dir/realm/deppart/byfield_4_1.cc.o CMakeFiles/RealmRuntime.dir/realm/deppart/image_4_2.cc.o CMakeFiles/RealmRuntime.dir/realm/deppart/preimage_4_2.cc.o CMakeFiles/RealmRuntime.dir/realm/deppart/byfield_4_2.cc.o CMakeFiles/RealmRuntime.dir/realm/deppart/image_4_3.cc.o CMakeFiles/RealmRuntime.dir/realm/deppart/preimage_4_3.cc.o CMakeFiles/RealmRuntime.dir/realm/deppart/byfield_4_3.cc.o CMakeFiles/RealmRuntime.dir/realm/deppart/image_4_4.cc.o CMakeFiles/RealmRuntime.dir/realm/deppart/preimage_4_4.cc.o CMakeFiles/RealmRuntime.dir/realm/deppart/byfield_4_4.cc.o CMakeFiles/RealmRuntime.dir/realm/deppart/image_4_5.cc.o CMakeFiles/RealmRuntime.dir/realm/deppart/preimage_4_5.cc.o CMakeFiles/RealmRuntime.dir/realm/deppart/byfield_4_5.cc.o CMakeFiles/RealmRuntime.dir/realm/deppart/image_5_1.cc.o CMakeFiles/RealmRuntime.dir/realm/deppart/preimage_5_1.cc.o CMakeFiles/RealmRuntime.dir/realm/deppart/byfield_5_1.cc.o CMakeFiles/RealmRuntime.dir/realm/deppart/image_5_2.cc.o CMakeFiles/RealmRuntime.dir/realm/deppart/preimage_5_2.cc.o CMakeFiles/RealmRuntime.dir/realm/deppart/byfield_5_2.cc.o CMakeFiles/RealmRuntime.dir/realm/deppart/image_5_3.cc.o CMakeFiles/RealmRuntime.dir/realm/deppart/preimage_5_3.cc.o CMakeFiles/RealmRuntime.dir/realm/deppart/byfield_5_3.cc.o CMakeFiles/RealmRuntime.dir/realm/deppart/image_5_4.cc.o CMakeFiles/RealmRuntime.dir/realm/deppart/preimage_5_4.cc.o CMakeFiles/RealmRuntime.dir/realm/deppart/byfield_5_4.cc.o CMakeFiles/RealmRuntime.dir/realm/deppart/image_5_5.cc.o CMakeFiles/RealmRuntime.dir/realm/deppart/preimage_5_5.cc.o CMakeFiles/RealmRuntime.dir/realm/deppart/byfield_5_5.cc.o CMakeFiles/RealmRuntime.dir/realm_fatbin.cc.o CMakeFiles/RealmRuntime.dir/realm/cuda/cudart_hijack.cc.o  -Wl,-rpath,"\$ORIGIN:/opt/cray/libfabric/1.15.2.0/lib64:/opt/cray/pe/pmi/default/lib:" -ldl -lrt /pscratch/sd/s/seshu/gb2024/legion_s3d_tdb/gasnet/release/lib/libgasnet-ofi-par.a /pscratch/sd/s/seshu/gb2024/legion_s3d_tdb/gasnet/release/lib/libgasnet-ofi-par.a /opt/cray/libfabric/1.15.2.0/lib64/libfabric.so /opt/cray/pe/pmi/default/lib/libpmi2.so /usr/lib64/libhwloc.so /opt/nvidia/hpc_sdk/Linux_x86_64/23.9/cuda/12.2/lib64/stubs/libcuda.so /usr/lib64/libpthread.so /usr/lib64/libhugetlbfs.so /usr/lib64/gcc/x86_64-suse-linux/12/libgcc.a -lm

# /opt/cray/pe/craype/2.7.30/bin/CC -fPIC  -march=native -O2 -shared -Wl,-soname,liblegion.so.1 -o ../lib/liblegion.so.1 CMakeFiles/LegionRuntime.dir/mappers/default_mapper.cc.o CMakeFiles/LegionRuntime.dir/mappers/mapping_utilities.cc.o CMakeFiles/LegionRuntime.dir/mappers/shim_mapper.cc.o CMakeFiles/LegionRuntime.dir/mappers/test_mapper.cc.o CMakeFiles/LegionRuntime.dir/mappers/null_mapper.cc.o CMakeFiles/LegionRuntime.dir/mappers/replay_mapper.cc.o CMakeFiles/LegionRuntime.dir/mappers/debug_mapper.cc.o CMakeFiles/LegionRuntime.dir/mappers/wrapper_mapper.cc.o CMakeFiles/LegionRuntime.dir/mappers/forwarding_mapper.cc.o CMakeFiles/LegionRuntime.dir/mappers/logging_wrapper.cc.o CMakeFiles/LegionRuntime.dir/legion/garbage_collection.cc.o CMakeFiles/LegionRuntime.dir/legion/index_space_value.cc.o CMakeFiles/LegionRuntime.dir/legion/legion_analysis.cc.o CMakeFiles/LegionRuntime.dir/legion/legion_c.cc.o CMakeFiles/LegionRuntime.dir/legion/legion_constraint.cc.o CMakeFiles/LegionRuntime.dir/legion/legion_context.cc.o CMakeFiles/LegionRuntime.dir/legion/legion.cc.o CMakeFiles/LegionRuntime.dir/legion/legion_instances.cc.o CMakeFiles/LegionRuntime.dir/legion/legion_mapping.cc.o CMakeFiles/LegionRuntime.dir/legion/legion_ops.cc.o CMakeFiles/LegionRuntime.dir/legion/legion_profiling.cc.o CMakeFiles/LegionRuntime.dir/legion/legion_profiling_serializer.cc.o CMakeFiles/LegionRuntime.dir/legion/legion_replication.cc.o CMakeFiles/LegionRuntime.dir/legion/legion_spy.cc.o CMakeFiles/LegionRuntime.dir/legion/legion_tasks.cc.o CMakeFiles/LegionRuntime.dir/legion/legion_trace.cc.o CMakeFiles/LegionRuntime.dir/legion/legion_views.cc.o CMakeFiles/LegionRuntime.dir/legion/legion_redop.cc.o CMakeFiles/LegionRuntime.dir/legion/mapper_manager.cc.o CMakeFiles/LegionRuntime.dir/legion/region_tree.cc.o CMakeFiles/LegionRuntime.dir/legion/runtime.cc.o CMakeFiles/LegionRuntime.dir/legion/legion_redop.cu.o CMakeFiles/LegionRuntime.dir/legion/region_tree_1.cc.o CMakeFiles/LegionRuntime.dir/legion/region_tree_1_1.cc.o CMakeFiles/LegionRuntime.dir/legion/region_tree_1_2.cc.o CMakeFiles/LegionRuntime.dir/legion/region_tree_1_3.cc.o CMakeFiles/LegionRuntime.dir/legion/region_tree_1_4.cc.o CMakeFiles/LegionRuntime.dir/legion/region_tree_1_5.cc.o CMakeFiles/LegionRuntime.dir/legion/region_tree_2.cc.o CMakeFiles/LegionRuntime.dir/legion/region_tree_2_1.cc.o CMakeFiles/LegionRuntime.dir/legion/region_tree_2_2.cc.o CMakeFiles/LegionRuntime.dir/legion/region_tree_2_3.cc.o CMakeFiles/LegionRuntime.dir/legion/region_tree_2_4.cc.o CMakeFiles/LegionRuntime.dir/legion/region_tree_2_5.cc.o CMakeFiles/LegionRuntime.dir/legion/region_tree_3.cc.o CMakeFiles/LegionRuntime.dir/legion/region_tree_3_1.cc.o CMakeFiles/LegionRuntime.dir/legion/region_tree_3_2.cc.o CMakeFiles/LegionRuntime.dir/legion/region_tree_3_3.cc.o CMakeFiles/LegionRuntime.dir/legion/region_tree_3_4.cc.o CMakeFiles/LegionRuntime.dir/legion/region_tree_3_5.cc.o CMakeFiles/LegionRuntime.dir/legion/region_tree_4.cc.o CMakeFiles/LegionRuntime.dir/legion/region_tree_4_1.cc.o CMakeFiles/LegionRuntime.dir/legion/region_tree_4_2.cc.o CMakeFiles/LegionRuntime.dir/legion/region_tree_4_3.cc.o CMakeFiles/LegionRuntime.dir/legion/region_tree_4_4.cc.o CMakeFiles/LegionRuntime.dir/legion/region_tree_4_5.cc.o CMakeFiles/LegionRuntime.dir/legion/region_tree_5.cc.o CMakeFiles/LegionRuntime.dir/legion/region_tree_5_1.cc.o CMakeFiles/LegionRuntime.dir/legion/region_tree_5_2.cc.o CMakeFiles/LegionRuntime.dir/legion/region_tree_5_3.cc.o CMakeFiles/LegionRuntime.dir/legion/region_tree_5_4.cc.o CMakeFiles/LegionRuntime.dir/legion/region_tree_5_5.cc.o  -Wl,-rpath,"\$ORIGIN:/pscratch/sd/s/seshu/gb2024/legion_s3d_tdb/legion/language/build/lib:/opt/cray/libfabric/1.15.2.0/lib64:/opt/cray/pe/pmi/default/lib:" ../lib/librealm.so.1 /usr/lib64/libz.so /pscratch/sd/s/seshu/gb2024/legion_s3d_tdb/gasnet/release/lib/libgasnet-ofi-par.a /pscratch/sd/s/seshu/gb2024/legion_s3d_tdb/gasnet/release/lib/libgasnet-ofi-par.a /opt/cray/libfabric/1.15.2.0/lib64/libfabric.so /opt/cray/pe/pmi/default/lib/libpmi2.so /usr/lib64/libhwloc.so /opt/nvidia/hpc_sdk/Linux_x86_64/23.9/cuda/12.2/lib64/stubs/libcuda.so /usr/lib64/libpthread.so /usr/lib64/libhugetlbfs.so /usr/lib64/gcc/x86_64-suse-linux/12/libgcc.a -lm /opt/nvidia/hpc_sdk/Linux_x86_64/23.9/cuda/12.2/lib64/stubs/libcuda.so

# cd /pscratch/sd/s/seshu/gb2024/legion_s3d_tdb/legion/language/build/bindings/regent #&& /usr/bin/cmake -E cmake_link_script CMakeFiles/Regent.dir/link.txt --verbose=1
# /opt/cray/pe/craype/2.7.30/bin/CC -fPIC  -march=native -O2 -shared -Wl,-soname,libregent.so.1 -o ../../lib/libregent.so.1 CMakeFiles/Regent.dir/regent.cc.o CMakeFiles/Regent.dir/regent_partitions.cc.o CMakeFiles/Regent.dir/regent_cudart_hijack.cc.o CMakeFiles/Regent.dir/regent_cuda.cu.o CMakeFiles/Regent.dir/bishop_mapper.cc.o CMakeFiles/Regent.dir/bishop_c.cc.o CMakeFiles/Regent.dir/murmur_hash3.cc.o  -Wl,-rpath,"\$ORIGIN:/pscratch/sd/s/seshu/gb2024/legion_s3d_tdb/legion/language/build/lib:/opt/cray/libfabric/1.15.2.0/lib64:/opt/cray/pe/pmi/default/lib:" ../../lib/liblegion.so.1 ../../lib/librealm.so.1 /pscratch/sd/s/seshu/gb2024/legion_s3d_tdb/gasnet/release/lib/libgasnet-ofi-par.a /pscratch/sd/s/seshu/gb2024/legion_s3d_tdb/gasnet/release/lib/libgasnet-ofi-par.a /opt/cray/libfabric/1.15.2.0/lib64/libfabric.so /opt/cray/pe/pmi/default/lib/libpmi2.so /usr/lib64/libhwloc.so /opt/nvidia/hpc_sdk/Linux_x86_64/23.9/cuda/12.2/lib64/stubs/libcuda.so /usr/lib64/libpthread.so /usr/lib64/libhugetlbfs.so /usr/lib64/gcc/x86_64-suse-linux/12/libgcc.a -lm /opt/nvidia/hpc_sdk/Linux_x86_64/23.9/cuda/12.2/lib64/stubs/libcuda.so

MECH=ammonia
cd /pscratch/sd/s/seshu/gb2024/legion_s3d_tdb/build/$MECH
g++ -march=znver3 -I/opt/cray/pe/mpich/8.1.28/ofi/gnu/12.3/include -I/opt/cray/pe/libsci/23.12.5/GNU/12.3/x86_64/include -I/opt/cray/pe/dsmml/0.2.2/dsmml//include -I/opt/cray/xpmem/2.6.2-2.5_2.38__gd067c3f.shasta/include -L/opt/cray/pe/mpich/8.1.28/ofi/gnu/12.3/lib -L/opt/cray/pe/libsci/23.12.5/GNU/12.3/x86_64/lib -L/opt/cray/pe/dsmml/0.2.2/dsmml//lib -L/opt/cray/xpmem/2.6.2-2.5_2.38__gd067c3f.shasta/lib64 -Wl,--as-needed,-lsci_gnu_123_mpi,--no-as-needed -Wl,--as-needed,-lmpi_gnu_123,--no-as-needed -Wl,--as-needed,-lsci_gnu_123,--no-as-needed -ldl -Wl,--as-needed,-ldsmml,--no-as-needed -lxpmem -shared /pscratch/sd/s/seshu/gb2024/legion_s3d_tdb/build/$MECH/rhst_fortran.o /pscratch/sd/s/seshu/gb2024/legion_s3d_tdb/build/$MECH/s3d_rank_mpi.o /pscratch/sd/s/seshu/gb2024/legion_s3d_tdb/build/$MECH/s3d_rank_legion.o /pscratch/sd/s/seshu/gb2024/legion_s3d_tdb/build/$MECH/s3d_rank_wrapper.o /pscratch/sd/s/seshu/gb2024/legion_s3d_tdb/build/$MECH/rhst_mapper.o /pscratch/sd/s/seshu/gb2024/legion_s3d_tdb/build/$MECH/compression.o /pscratch/sd/s/seshu/gb2024/legion_s3d_tdb/build/$MECH/init_tasks.o /pscratch/sd/s/seshu/gb2024/legion_s3d_tdb/build/$MECH/cpu_stencils.o /pscratch/sd/s/seshu/gb2024/legion_s3d_tdb/build/$MECH/utility_tasks.o -L/pscratch/sd/s/seshu/gb2024/legion_s3d_tdb/build/$MECH -lregent_tasks -lmpi_tasks -lsum_tasks -lphysical_tasks -lflux_tasks -lrhs_tasks -lpressure_tasks -ltransport_tasks -lchemistry_tasks -lboundary_tasks -lbc_tasks -lcalcbc_tasks -Wl,-no-as-needed -ltemp -lz -ldbo_tasks_unsafe -L/opt/cray/pe/libsci/23.12.5/GNU/12.3/x86_64/lib -lsci_gnu -lcusolver -lcublas -L/opt/cray/pe/libsci/23.12.5/GNU/12.3/x86_64/lib -lsci_gnu -L../../kernels/"$MECH"_kernels -lsinge_"$MECH"_cpu -lsinge_"$MECH"_gpu  -L.  -L /pscratch/sd/s/seshu/gb2024/legion_s3d_tdb/legion/runtime/../language/build/lib -lregent -llegion -lrealm    -lrt -lpthread -latomic -ldl -rdynamic -L/opt/nvidia/hpc_sdk/Linux_x86_64/23.9/cuda/12.2/lib64 -L/opt/nvidia/hpc_sdk/Linux_x86_64/23.9/math_libs/lib64 -L/opt/nvidia/hpc_sdk/Linux_x86_64/23.9/cuda/12.2/lib64/stubs -lcuda -Xlinker -rpath=/opt/nvidia/hpc_sdk/Linux_x86_64/23.9/cuda/12.2/lib64 -lz -o /pscratch/sd/s/seshu/gb2024/legion_s3d_tdb/build/$MECH/librhst.so
