Skip to main content

Core algorithms for operators and graph of the AIDGE framework

Project description

Pipeline status C++ coverage Python coverage

Aidge CUDA library

You can find in this folder the library that implements the CUDA operators.

[TOC]

Quick Start

ℹ️ First, make sure to go through installation instructions required for every module.

Dependencies

Make sure to install the following tools:

  • CUDA ToolKit 12.6
    • 12.4.1 is the strict minimum, but 12.6+ is recommended.
  • CUDnn9
    • make sure to install the CUDA 12 compatible version

[!TIP] On Windows at least, CUDnn9 headers and libraries needs to be findable. One way is to add files from CUDnn to CUDA in their respective bin/, lib/ and include/. Or you could add these folders to your path.

Aidge dependencies

  • aidge_core
  • aidge_backend_cpu
    • Only needed for tests.
# On Windows, from aidge/
# ----------[ C++ development]----------
setup.ps1 -Modules core, backend_cpu -Clean -Tests

# ----------[ Python development]----------
setup.ps1 -Modules core, backend_cpu -Clean -Tests -Python
# On Unix, from aidge/
# ----------[ C++ development]----------
./setup.sh -m core -m backend_cpu --clean --tests

# ----------[ Python development]----------
./setup.sh -m core -mbackend_cpu --clean --tests --python

Using setup.ps1

[!NOTE] Windows only* *Unless you installed powershell on your system

# ----------[ C++ development]----------
# From aidge/
setup.ps1 -Modules backend_cuda -Clean -Tests

# ----------[ Python development]----------
# From aidge/
setup.ps1 -Modules backend_cuda -Clean -Tests -Python

[!TIP] Run Get-Help setup.ps1 --Full to display documentation

Using setup.sh

[!NOTE] Unix only*

# ----------[ C++ development]----------
# From aidge/
./setup.sh -m backend_cuda --clean --tests

# ----------[ Python development]----------
# From aidge/
./setup.sh -m backend_cuda --clean --tests --python

[!TIP] Run setup.sh -h to display documentation

Using pip

[!NOTE] If using virtual environment, make sure to use the same for every installation !

# ----------[ Python development]----------
# only in aidge/aidge/aidge_backend_cuda/
pip install . -v

# If you want to install test, do this instead
pip install .[test] -v

# Launch tests using pytest
pytest

[!TIP] -v is to enable verbose mode !

Development mode install

[!WARNING] Experimental Untested & experimental feature, see https://scikit-build-core.readthedocs.io/en/latest/configuration/index.html#editable-installs.

pip install --no-build-isolation --config-settings=editable.rebuild=true -Cbuild-dir=build -ve.

Using CMake

[!NOTE] Only for C++ development Don't use this method, if you wish to create a pip package Use pip instead.

A CMakePreset.json is available.

# Configure
cmake --preset clang-debug
# Build
cmake --build --preset clang-debug
# Install
cmake --install
# Test
ctest --test-dir build/

Feel free to create your own presets in CMakeUsersPresets.json by inheriting the ones available in CMakePresets.json.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

aidge_backend_cuda-0.9.0-cp312-cp312-win_amd64.whl (94.0 MB view details)

Uploaded CPython 3.12Windows x86-64

aidge_backend_cuda-0.9.0-cp312-cp312-manylinux_2_28_x86_64.whl (69.0 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

aidge_backend_cuda-0.9.0-cp311-cp311-win_amd64.whl (93.9 MB view details)

Uploaded CPython 3.11Windows x86-64

aidge_backend_cuda-0.9.0-cp311-cp311-manylinux_2_28_x86_64.whl (68.9 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

aidge_backend_cuda-0.9.0-cp310-cp310-win_amd64.whl (93.7 MB view details)

Uploaded CPython 3.10Windows x86-64

aidge_backend_cuda-0.9.0-cp310-cp310-manylinux_2_28_x86_64.whl (68.8 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

File details

Details for the file aidge_backend_cuda-0.9.0-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for aidge_backend_cuda-0.9.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 94bcd645463d974832f68fd5409d346951f16eb65b8409fedc52fe8ab4235dc4
MD5 bf07b07ea4b75b807dd5b4a9bb6d00a4
BLAKE2b-256 6823653358c1778d7b581f9463becd9f9c648abdba9173f70c969226cc3e9b42

See more details on using hashes here.

File details

Details for the file aidge_backend_cuda-0.9.0-cp312-cp312-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for aidge_backend_cuda-0.9.0-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c4bf950d96f41bca9295a968f9a4dc4ccaf5a919b5f6d3ebfffa0741a709fe63
MD5 77781d6c9f18cd924d3cb4dd0c892a68
BLAKE2b-256 3cc3094f623b8c368ea8c1fd64e2c372f1ab1ab5268edc682bdd51c4558f6db9

See more details on using hashes here.

File details

Details for the file aidge_backend_cuda-0.9.0-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for aidge_backend_cuda-0.9.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b98163f4cd85992cdde2507c0efab6072fecb5251eb5a852c31e9725d616e204
MD5 09f9de39ffb95590d15092341793261e
BLAKE2b-256 5075737ab33fa7aa854acbbf68d51c3dad968fc3911e9a4e4f470cdf7e365cd5

See more details on using hashes here.

File details

Details for the file aidge_backend_cuda-0.9.0-cp311-cp311-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for aidge_backend_cuda-0.9.0-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 57d24cc695fcfcce333ff6d4ace951d1a84dab0d584fe68ca17f5957aac18449
MD5 5cea7f933dafa3ba73b422e67c9462a2
BLAKE2b-256 310a0f5988e4e422bbe6a568e4ecc7bd647c877eb89d9ac08b97dfc9c5ff110a

See more details on using hashes here.

File details

Details for the file aidge_backend_cuda-0.9.0-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for aidge_backend_cuda-0.9.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 69aebc457a4ebcf093aa6c352653a0059e48b1726a40d5bcb85b7aca40948f4e
MD5 65ff9014963229bb6fb0a320b0a94264
BLAKE2b-256 5a0ed95731fab9b69fc5c41ccbd4432e9b8930c21dd8a6da6ef46660cc266d29

See more details on using hashes here.

File details

Details for the file aidge_backend_cuda-0.9.0-cp310-cp310-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for aidge_backend_cuda-0.9.0-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 4a84c34bec3f6719bb612d0f7306c711bc6f6cbc0d7cd0918c5c3f23b3c49d66
MD5 a2c8bdd94d388571972835430cce7d6d
BLAKE2b-256 b805bebcb0d0dcdb8807760c59edd8692def90bcc299bc79a6e6021c60f01c03

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page