gpu3gppchan Python Bindings
Python interface to the GPU-accelerated gpu3gppchan C++/CUDA library through
nanobind. The package provides 3GPP TR 38.901 system-level statistical channel models,
TDL/CDL fading channels, OFDM modulation and demodulation, and GPU noise helpers.
Installation
python -m pip install gpu3gppchan
Pip selects the wheel matching your operating system, CPU architecture, and
Python interpreter. Ordinary CPython 3.12–3.14 uses the cp312-abi3 wheel;
free-threaded CPython 3.14 uses the separate cp314-cp314t wheel.
Verify the installation:
import gpu3gppchan as chan
print(chan.__version__)
config = chan.SimConfig(center_freq_hz=3.5e9, bandwidth_hz=100e6, run_mode=0)
print(config.center_freq_hz)
Prerequisites
| Component | Requirement |
|---|---|
| Python | CPython 3.12–3.14, or free-threaded CPython 3.14 |
| GPU | NVIDIA Ampere (SM 8.0) or newer |
| Driver | NVIDIA driver supporting CUDA 13 |
| Linux | glibc 2.34 or newer; x86_64 or aarch64 |
| Windows | x86_64; Microsoft Visual C++ Redistributable |
CUDA runtime dependencies are installed through pip. A separate CUDA Toolkit installation is not required to use the wheels. HDF5 and yaml-cpp are bundled; no separate system installation of those libraries is required.
API Overview
System-Level Statistical Channels (SLS)
System-level models include UMa, UMi, and RMa scenarios, with topology,
path loss, shadow fading, LOS/NLOS, small-scale fading, and user mobility.
StatisticalChannel provides the high-level interface; StatisChanModel
exposes the native engine and diagnostic exports.
SLS configuration can be supplied through YAML: Python reads it with PyYAML and passes the values into the bound configuration objects. Native C++ example applications also parse YAML with yaml-cpp. The repository includes complete SLS configurations and Python configuration-loading examples.
The following minimal example reads YAML settings, runs an SLS model with a generated topology, and dumps its results to HDF5 for debugging:
import yaml
import gpu3gppchan as chan
from gpu3gppchan.cuda_utils import CudaStream
# For a file, use yaml.safe_load() on an open text file instead.
settings = yaml.safe_load("""
simulation:
center_freq_hz: 3500000000.0
bandwidth_hz: 100000000.0
system_level:
scenario: UMa
n_site: 1
n_sector_per_site: 1
n_ut: 1
""")
sim = chan.SimConfig(**settings["simulation"], run_mode=0)
sim.internal_memory_mode = 1 # Retain channel data for inspection.
topology = dict(settings["system_level"])
topology["scenario"] = getattr(chan.Scenario, topology["scenario"])
system = chan.SystemLevelConfig(**topology)
system.spatial_consistency_level = 2 # 0=cached independent links, 1=shared floors, 2=independent floors
stream = CudaStream()
model = chan.StatisChanModel(sim, system, 0, stream)
model.run(ref_time=0.0)
model.save_sls_chan_to_h5_file("_debug")
# Writes slsChanData_1sites_1uts_debug_seed0.h5 in the current directory.
The native HDF5 export is available through the Python binding. Use it to
inspect channel results and diagnose simulations; h5py can read the generated
files. dump_topology_to_yaml(filename) also exports the model topology.
Set SystemLevelConfig.spatial_consistency_level before creating the model.
The default is 2; level 1 shares indoor grids across floors, and level 0
generates and caches independent per-link values upfront without spatial grids
or FFT workspace. All levels preserve LSP cross-correlation. reset() refreshes
the values for a new drop. The full constructor also accepts this keyword.
Link-Level Fading Channels (TDL/CDL)
FadingChannel provides link-level TDL/CDL fading with OFDM and noise processing
and manages GPU buffers through a CuPy array interface. TdlChannelConfig and
CdlChannelConfig configure delay profiles, antenna counts, Doppler, and other
link parameters. TdlChan and CdlChan expose the lower-level native engines.
TDL Example
The following example runs a single-cell, single-user channel on the GPU:
import cupy as cp
from gpu3gppchan import FadingChannel, TdlChannelConfig
config = TdlChannelConfig(
delay_profile="A",
delay_spread=30.0,
n_bs_ant=1,
n_ue_ant=1,
)
channel = FadingChannel(channel_config=config)
# Shape: (cells, users, transmit antennas, OFDM symbols, subcarriers).
tx = cp.ones((1, 1, 1, 14, 3276), dtype=cp.complex64)
rx = channel.run(freq_in=tx, tti_idx=0, snr_db=20.0)
print(rx.shape) # (1, 1, 1, 14, 3276)
print(bool(cp.all(cp.isfinite(rx)))) # True
Other Signal Processing Helpers and Native Configuration
The lower-level API exposes the native engines and configuration objects for applications that manage their own GPU buffers and streams.
| Classes | Purpose |
|---|---|
SimConfig, SystemLevelConfig, LinkLevelConfig, ExternalConfig |
Simulation, topology, fading, and external geometry settings. |
TdlConfig / TdlChan, CdlConfig / CdlChan |
Native link-level channel configuration and engines. |
StatisChanModel |
Native system-level statistical channel engine. |
CarrierParams, OfdmModulate, OfdmDeModulate |
OFDM carrier configuration, modulation, and demodulation. |
GauNoiseAdder |
GPU additive Gaussian noise. |
CellParam, UtParamCfg, AntPanelConfig, Coordinate |
Cell, user, antenna, and position configuration. |
Scenario, UeType, SensingTargetType |
Scenario, user, and sensing-target enums. |
LinkParams, ClusterParams, UtMobilitySnapshot |
System-level link, cluster, and mobility snapshots. |
Configuration objects can be constructed without CuPy arrays. Channel execution requires a compatible GPU; low-level callers must synchronize their CUDA work and manage the lifetime of caller-owned buffers.
Dependencies
Pip installs the following runtime dependencies automatically:
numpy,h5py, andpyyamlcuda-bindingsnvidia-cuda-runtime>=13.0.88andnvidia-curand>=10.4.0cupy-cuda13x(on Windows,cupy-cuda13x[ctk]>=14.2.0)
Native HDF5 handles C++ exports, while h5py supports Python-side HDF5 workflows.
The package retains both native and Python YAML support. No .h5 or .hdf5
data files are included in the wheel.
Threading
Free-threaded Python getters for OFDM and fading output return owned GPU
snapshots. Ordinary Python uses zero-copy views that may change on a later
run(). Synchronize external CUDA work before passing buffers into a model,
and do not modify them while the model uses them.
Testing and Source Builds
To install the optional test dependencies:
python -m pip install "gpu3gppchan[test]"
From a source checkout, run the installed-wheel smoke tests:
python -m pytest testBenches/gpu3GPPChan/python/tests/test_wheel_smoke.py -v
Import and configuration tests run without a GPU; GPU channel tests skip when no usable CUDA device is available. A successful import alone does not validate GPU execution.
The source is part of
NVIDIA Aerial CUDA-Accelerated RAN.
In a checkout, see testBenches/gpu3GPPChan/python/NOTES.md for native packaging,
CMake presets, detailed tests, and threading semantics, and
testBenches/gpu3GPPChan/tooling/README.md for Linux and Windows build workflows.
License
Aerial source is licensed under Apache-2.0. Bundled components retain their own
license terms; the wheel includes notices under .dist-info/licenses/.
Distribution metadata uses LicenseRef-gpu3gppchan-distribution for the combined
terms described in the included THIRD_PARTY_NOTICES.txt.
Metadata
Release files for gpu3gppchan 0.1.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
Total release size: 845.0 MB
Release files / gpu3gppchan-0.1.7-cp314-cp314t-win_amd64.whl
| Download URL | gpu3gppchan-0.1.7-cp314-cp314t-win_amd64.whl |
|---|---|
| Size | 83.4 MB |
| Tags | CPython 3.14 CPython 3.14 free-threading Windows x86-64 |
|
SHA-256 checksum How to use checksums |
bdff5091b7a794b22c74fc9fe43fef78154daf1e1e95ca1797b935a7d8addad3
|
|
BLAKE2b-256 checksum How to use checksums |
d4ee9e5b5e073eb199830e1b8f4ef36e73c4dff5ac4be187d3b6ab34416456dc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.8
|
Release files / gpu3gppchan-0.1.7-cp314-cp314t-manylinux_2_39_x86_64.whl
| Download URL | gpu3gppchan-0.1.7-cp314-cp314t-manylinux_2_39_x86_64.whl |
|---|---|
| Size | 84.8 MB |
| Tags | CPython 3.14 CPython 3.14 free-threading Linux glibc 2.39+ x86-64 |
|
SHA-256 checksum How to use checksums |
c35f80072c2924f84a1582f00134e3ddd41ab4494f3a9361d2ad2355b96ea7d9
|
|
BLAKE2b-256 checksum How to use checksums |
532ae8cecfce12ed38291747105e0804951b2555933c0d4421452be6c4676fad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.8
|
Release files / gpu3gppchan-0.1.7-cp314-cp314t-manylinux_2_39_aarch64.whl
| Download URL | gpu3gppchan-0.1.7-cp314-cp314t-manylinux_2_39_aarch64.whl |
|---|---|
| Size | 84.7 MB |
| Tags | CPython 3.14 CPython 3.14 free-threading Linux glibc 2.39+ ARM64 |
|
SHA-256 checksum How to use checksums |
99f4fc2792c0524b20813047196428e900543de93f9084a72f4d461888ceeb3e
|
|
BLAKE2b-256 checksum How to use checksums |
ed5a60ee0d5f05271ef0508fe4bb1a65afc06a914e04c2bfdabecee1b0e43cb4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.8
|
Release files / gpu3gppchan-0.1.7-cp314-cp314t-manylinux_2_34_x86_64.whl
| Download URL | gpu3gppchan-0.1.7-cp314-cp314t-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 84.8 MB |
| Tags | CPython 3.14 CPython 3.14 free-threading Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
209a5427678e55f7f0cc2510feb83589241e769c389488d8446968912b81ce28
|
|
BLAKE2b-256 checksum How to use checksums |
2bcb161728a0c37168186bcde3896ca2dbec9da993d87003bc59d833c7b26e1e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.8
|
Release files / gpu3gppchan-0.1.7-cp314-cp314t-manylinux_2_34_aarch64.whl
| Download URL | gpu3gppchan-0.1.7-cp314-cp314t-manylinux_2_34_aarch64.whl |
|---|---|
| Size | 84.8 MB |
| Tags | CPython 3.14 CPython 3.14 free-threading Linux glibc 2.34+ ARM64 |
|
SHA-256 checksum How to use checksums |
22958f5c1c480147ac718e7d35d3f50022df1ffe6385374b13763aff96a1c153
|
|
BLAKE2b-256 checksum How to use checksums |
b6215be0cd3038f47ac096e33b495fd6c073121cebdfbd96cae7fe6a5c60a975
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.8
|
Release files / gpu3gppchan-0.1.7-cp312-abi3-win_amd64.whl
| Download URL | gpu3gppchan-0.1.7-cp312-abi3-win_amd64.whl |
|---|---|
| Size | 83.3 MB |
| Tags | CPython 3.12 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
e887b1525182c21029817fe8ec32f1ec879857299df37994135017a49f6b85ea
|
|
BLAKE2b-256 checksum How to use checksums |
0f3e9666e5490f43528780dba43f4ebfff54b60b3638df7ee07f16519b4ebb84
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.8
|
Release files / gpu3gppchan-0.1.7-cp312-abi3-manylinux_2_39_x86_64.whl
| Download URL | gpu3gppchan-0.1.7-cp312-abi3-manylinux_2_39_x86_64.whl |
|---|---|
| Size | 84.8 MB |
| Tags | CPython 3.12 Linux glibc 2.39+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
35070297e829592abbc7588b91b297da23422bd0f8e2898a268095beab6d34da
|
|
BLAKE2b-256 checksum How to use checksums |
d28b79ec56b40f7a07364243414fd2f8b141d696ec52f223fb9f050ca26346a2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.8
|
Release files / gpu3gppchan-0.1.7-cp312-abi3-manylinux_2_39_aarch64.whl
| Download URL | gpu3gppchan-0.1.7-cp312-abi3-manylinux_2_39_aarch64.whl |
|---|---|
| Size | 84.7 MB |
| Tags | CPython 3.12 Linux glibc 2.39+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
fecd9f20e28b29065641d4e410658bb8734c59455078f1b33f273a9f1ef16127
|
|
BLAKE2b-256 checksum How to use checksums |
b0dc4d32af32918402f236e86abed3de316de062365bede1b3acb66cf7356390
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.8
|
Release files / gpu3gppchan-0.1.7-cp312-abi3-manylinux_2_34_x86_64.whl
| Download URL | gpu3gppchan-0.1.7-cp312-abi3-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 84.8 MB |
| Tags | CPython 3.12 Linux glibc 2.34+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
a61b84a70c4857b6e7b0f54d107c43b4eeebfc45afa7c14dea14fa5ef07ba6da
|
|
BLAKE2b-256 checksum How to use checksums |
b6cf07d81cbb3aadcfd887a45fd960db528f85ee4c0d470689ebb9d2464de55e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.8
|
Release files / gpu3gppchan-0.1.7-cp312-abi3-manylinux_2_34_aarch64.whl
| Download URL | gpu3gppchan-0.1.7-cp312-abi3-manylinux_2_34_aarch64.whl |
|---|---|
| Size | 84.8 MB |
| Tags | CPython 3.12 Linux glibc 2.34+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
5b2fe41f2d5c098880f2b09384c1473d3e09e1f8bda9b9096f815cc60e97e203
|
|
BLAKE2b-256 checksum How to use checksums |
2f3783a051fc66f3a0c174266a4e8f4e0d84d1f08a0ab3b5280b39052bb6d6b4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.8
|
Security for gpu3gppchan 0.1.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.