# CUDA IPC vs NVSHMEM for shared memory between applications

**URL:** <https://forums.developer.nvidia.com/t/cuda-ipc-vs-nvshmem-for-shared-memory-between-applications/237071>\
**Category:** CUDA Programming and Performance\
**Tags:** image-processing, hpc, cuda\
**Created:** [December 14, 2022, 11:06am UTC](https://forums.developer.nvidia.com/t/cuda-ipc-vs-nvshmem-for-shared-memory-between-applications/237071 "2022-12-14T11:06:08Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Robert\_Crovella](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/robert_crovella/32/14043_2.png) [@Robert\_Crovella](https://forums.developer.nvidia.com/u/Robert_Crovella)\
**Post date:** [February 6, 2023, 4:30pm UTC](https://forums.developer.nvidia.com/t/cuda-ipc-vs-nvshmem-for-shared-memory-between-applications/237071/5 "2023-02-06T16:30:33Z")

</div>

> [@ash.narayan13](#):
>
> how do I shared the memory address between 2 application?

There is [a CUDA sample code](https://github.com/NVIDIA/cuda-samples/tree/master/Samples/0_Introduction/simpleIPC) that demonstrates how. There are also various questions on forums that cover the topics. You can find those with a bit of searching. [Here](https://forums.developer.nvidia.com/t/gpu-inter-process-communications-ipc-question/35936/4) is one. [Here](https://forums.developer.nvidia.com/t/why-do-simpleipc-example-use-sharedmemorycreate-before-cudamalloc/221180) is another.

---

_[View the full topic](https://forums.developer.nvidia.com/t/cuda-ipc-vs-nvshmem-for-shared-memory-between-applications/237071)._
