This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Consider using release 0.1.2 instead.
fortran-nlp-kernels-cuda
CUDA Fortran and cuBLAS companion distribution for fortran-nlp-kernels.
This package installs the optional native fortran_nlp._cuda extension. The matching base package provides the Python API, CPU extension, lexical and vector-search modules, backend dispatch, and calibration utilities.
Installation
python -m pip install fortran-nlp-kernels-cuda==0.1.1
The companion requires and automatically installs:
fortran-nlp-kernels==0.1.1
Supported environment
The initial 0.1.1 CUDA wheel targets:
- Linux x86-64
- CPython 3.12
- NVIDIA GPU with a compatible driver
- CUDA 13.3 runtime
- cuBLAS
- Any additional NVIDIA HPC SDK runtime libraries reported by the published wheel
NVIDIA runtime libraries are external and are not bundled into the wheel.
Available backends
cuda_fortran -> handwritten CUDA Fortran scoring
cuda_cublas -> cuBLAS SGEMV/SGEMM scoring
Both backends use the existing deterministic CPU top-k implementation. CUDA backends are explicit in 0.1.1 and are not selected by backend="auto".
Usage
import numpy as np
from fortran_nlp.vector_search import FlatIndexL2
vectors = np.array(
[
[1.0, 2.0, 3.0],
[4.0, 5.0, 6.0],
[-1.0, 2.0, 1.0],
],
dtype=np.float32,
)
query = np.array([1.0, 2.0, 3.0], dtype=np.float32)
index = FlatIndexL2(
vectors,
backend="cuda_cublas",
)
distances, indices = index.search(query, k=2)
The CUDA companion supports:
JaccardIndexwithbackend="cuda_fortran"FlatIndexL2withcuda_fortranandcuda_cublasFlatIndexIPwithcuda_fortranandcuda_cublasFlatIndexCosinewithcuda_fortranandcuda_cublas- Single-query and batched search
Diagnostics
Check the NVIDIA driver:
nvidia-smi
Verify the extension import:
python - <<'PY'
from fortran_nlp import _cuda
print(_cuda.__file__)
PY
Inspect dynamic-library resolution:
ldd "$(python -c 'from fortran_nlp import _cuda; print(_cuda.__file__)')"
Source builds
Building the CUDA extension from source requires NVIDIA HPC SDK with nvfortran, a compatible CUDA toolkit, and a C++17 compiler.
nvfortran --version
License
Licensed under GPL-3.0-only. See the main repository for source code and license text.
Metadata
Release files for fortran-nlp-kernels-cuda 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fortran_nlp_kernels_cuda-0.1.1-cp312-cp312-manylinux_2_34_x86_64.whl | CPython 3.12 | CPython 3.12 | Linux glibc 2.34+ x86-64 | Details for fortran_nlp_kernels_cuda-0.1.1-cp312-cp312-manylinux_2_34_x86_64.whl |
Release files / fortran_nlp_kernels_cuda-0.1.1-cp312-cp312-manylinux_2_34_x86_64.whl
| Download URL | fortran_nlp_kernels_cuda-0.1.1-cp312-cp312-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 77.3 MB |
| Tags | CPython 3.12 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
9113ca29afd10c872b140d78f3b1dc4195753316abf29b5ac02fdc69b57dd39d
|
|
BLAKE2b-256 checksum How to use checksums |
b6f6853b7af88bebc792a75583e194c9e7f2b8ada02f9b2df280c2e1d4b77f5d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.
Transparency logSecurity for fortran-nlp-kernels-cuda 0.1.1
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.
Full provenance
1 file in this release has been uploaded with provenance metadata.
Attestation for fortran_nlp_kernels_cuda-0.1.1-cp312-cp312-manylinux_2_34_x86_64.whl
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.
Transparency logA 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.