Need DOCA SDK v3.0.0 Header Files & Libraries for Ubuntu Host (e.g., doca_comm_channel.h)

Hi,

I’m trying to compile a sample application using doca_comm_channel_ep_send() and doca_comm_channel_ep_recvfrom() but I’m missing the required header files like doca_comm_channel.h and the related libraries.

On my host system, the /opt/mellanox/doca/include/ and /opt/mellanox/doca/lib/ directories are missing. I am unable to install via apt install doca-all since the package is not available in public Ubuntu repositories.

Could you please guide me on:

  • Where can I download the DOCA Host SDK (v3.0.0) for Ubuntu (preferably a .deb or .tar.gz)?
  • How to get access to the development headers and libraries required to build DOCA-based apps on the host?

Any help or official links would be much appreciated.

Thanks in advance!

Hi

Thank you for your inquiry about accessing the DOCA SDK v3.0.0 header files and libraries for Ubuntu, specifically for `doca_comm_channel.h` and related components.

## Solution

To access the DOCA SDK v3.0.0 header files and libraries for Ubuntu host, you need to:

1. **Create a NVIDIA Developer account** (if you don’t already have one)

2. **Download the DOCA Host package** for your specific Ubuntu version

3. **Install the package** on your host system

## Detailed Instructions

### 1. Create an NVIDIA Developer Account

If you don’t already have an NVIDIA Developer account:

- Visit https://developer.nvidia.com/

- Click on “Join” or “Sign Up” and follow the registration process

### 2. Download the DOCA Host Package

1. Go to the NVIDIA DOCA downloads page: NVIDIA DOCA Downloads | NVIDIA Developer

2. Log in with your NVIDIA Developer account

3. Select “DOCA 3.0.0” as the version

4. Select “Host” as the deployment platform

5. Select “Ubuntu” as your operating system and your specific version (e.g., Ubuntu 22.04)

6. Select “doca-host-repo” as the package type

7. Download the appropriate .deb package for your system

### 3. Install the Package

Once downloaded, install the repository package:

```bash

sudo apt-get update

sudo apt install ./doca-host-repo-ubuntu-3.0.0-.deb

sudo apt-get update

```

Then install the DOCA SDK development package:

```bash

sudo apt-get install doca-sdk

```

This will install all necessary header files and libraries, including `doca_comm_channel.h`, in the standard locations:

- Headers: `/opt/mellanox/doca/include/`

- Libraries: `/opt/mellanox/doca/lib/`

### 4. Set Up Your Development Environment

To compile applications using the DOCA SDK:

1. Add the DOCA include and library paths to your build environment:

```bash

export CPATH=$CPATH:/opt/mellanox/doca/include

export LIBRARY_PATH=$LIBRARY_PATH:/opt/mellanox/doca/lib

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/mellanox/doca/lib

```

2. When compiling your application, link against the required DOCA libraries:

```bash

gcc -I/opt/mellanox/doca/include -L/opt/mellanox/doca/lib your_app.c -ldoca_comm_channel -o your_app

```

## Additional Resources

- DOCA Documentation: DOCA Documentation v3.0.0 - NVIDIA Docs

- DOCA Communication Channel API: DOCA Comch - NVIDIA Docs

- DOCA Sample Applications: https://github.com/NVIDIA/doca-samples