By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
KriptotekaKriptoteka
  • Home
  • News
    • Web3
    • Crypto News
    • Market Analysis
  • Market
    • AI
    • Altcoins
    • Bitcoin
    • Blockchain
    • CEX
    • Defi
    • DePIN
    • DEX
    • ETFs
    • Ethereum
    • Gaming
    • ICO/IDO
    • Institutions
    • L1&L2
    • Meme
    • NFT tech
    • RWA
    • Stable coins
  • Data
  • Events
  • Learn
  • Reports
  • Podcasts
  • Pro membership
Reading: Numbast Links CUDA C++ with Python for Enhanced Performance
Share
Notification Show More
Font ResizerAa
Font ResizerAa
KriptotekaKriptoteka
  • Home
  • News
  • Market
  • Data
  • Events
  • Learn
  • Reports
  • Podcasts
  • Pro membership
  • Home
  • News
    • Web3
    • Crypto News
    • Market Analysis
  • Market
    • AI
    • Altcoins
    • Bitcoin
    • Blockchain
    • CEX
    • Defi
    • DePIN
    • DEX
    • ETFs
    • Ethereum
    • Gaming
    • ICO/IDO
    • Institutions
    • L1&L2
    • Meme
    • NFT tech
    • RWA
    • Stable coins
  • Data
  • Events
  • Learn
  • Reports
  • Podcasts
  • Pro membership
Have an existing account? Sign In
Follow US
  • Advertise
© 2022 Foxiz News Network. Ruby Design Company. All Rights Reserved.
Kriptoteka > Market > Blockchain > Numbast Links CUDA C++ with Python for Enhanced Performance
Blockchain

Numbast Links CUDA C++ with Python for Enhanced Performance

marcel.mihalic@gmail.com
Last updated: October 25, 2024 5:53 am
By marcel.mihalic@gmail.com 3 Min Read
Share
SHARE


Luisa Crawford
Oct 25, 2024 05:33

Numbast launches an automated system for converting CUDA C++ APIs into Numba bindings, significantly improving the performance accessibility for Python developers.



Numbast Bridges CUDA C++ and Python Ecosystems

The divide between Python developers and the CUDA C++ ecosystem is about to shrink considerably with the unveiling of Numbast, as detailed on the NVIDIA Technical Blog. This groundbreaking tool automates the binding of CUDA C++ APIs to Numba, greatly broadening the performance capabilities available to Python developers.

Closing the Divide

Numba has traditionally allowed Python developers to create CUDA kernels using a syntax similar to C++. However, many libraries exclusive to CUDA C++, like CUDA Core Compute Libraries and cuRAND, have remained inaccessible to Python users. The manual process of binding each library to Python has been laborious and prone to errors.

Meet Numbast

Numbast resolves this challenge by creating an automated pipeline that reads top-level declarations from CUDA C++ header files, serializes them, and produces Numba extensions. This method guarantees consistency and ensures that Python bindings are updated in accordance with changes in CUDA libraries.

Showcasing Numbast’s Features

A practical demonstration of Numbast’s capabilities involves generating Numba bindings for a basic myfloat16 struct, modeled after CUDA’s float16 header. This example illustrates how C++ declarations can be converted into bindings accessible in Python, thereby allowing developers to leverage CUDA’s performance benefits within a Python framework.

Real-World Use

One of the initial bindings enabled by Numbast is the bfloat16 data type, which seamlessly integrates with PyTorch’s torch.bfloat16. This integration facilitates the development of custom compute kernels that utilize CUDA intrinsics for effective processing.

Structure and Operation

Numbast consists of two principal components: AST_Canopy, responsible for parsing and serializing C++ headers, and the Numbast layer itself, which produces Numba bindings. AST_Canopy accommodates environment detection at runtime and provides flexibility in computing capabilities parsing, while Numbast acts as the intermediary between C++ and Python.

Performance and Future Potential

The bindings created with Numbast are fine-tuned via foreign function invocation, with future upgrades anticipated to further reduce the performance disparity between Numba kernels and native CUDA C++ implementations. Upcoming versions are expected to introduce additional bindings, including NVSHMEM and CCCL, thus broadening the tool’s applicability.

For further details, visit the NVIDIA Technical Blog.

Image source: Shutterstock


You Might Also Like

Coinbase CEO Proposes Crypto Wallet for AI Behind GOAT Meme Coin

Honduras & Colombia Local Grants Overview and Highlights

Rhinestone ERC-7579 Adapter Audit Summary and Findings Report

Victims file $235M class-action suit against WazirX for hack

Tether and Lugano Reveal Satoshi Nakamoto Statue at Forum

Share This Article
Facebook Twitter Email Print
Previous Article Lazarus Group’s Blockchain Game Steals $3B in Crypto via Chrome
Next Article Hackers Allegedly Steal $20 Million from US Government Wallets
Leave a comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Stay Connected

FacebookLike
TwitterFollow
YoutubeSubscribe
TelegramFollow
- Advertisement -
Ad image

Latest News

4 Cryptos to Challenge Solana: Potential Growth for Investors
Defi
Bitcoin ETF Inflows Exceed $3B, Demand Reaches 6-Month Peak
ETFs
Japan’s Push for Bitcoin and Ethereum ETFs Gains Momentum
Institutions
Ripple Appeals Court Ruling on XRP’s Institutional Sales
Meme
//

We influence millions of users and is the number one Crypto and Web3 news network on the planet

Sign Up for Our Newsletter

Subscribe to our newsletter to get our newest articles instantly!

© 2022 Foxiz News Network. Ruby Design Company. All Rights Reserved.
nl Dutchen Englishfr Frenchde Germanel Greekit Italianpt Portugueseru Russianes Spanish
en en
Join Us!

Subscribe to our newsletter and never miss our latest news, podcasts etc..

Zero spam, Unsubscribe at any time.
Welcome Back!

Sign in to your account

Lost your password?