NVIDIA / TransformerEngine

A library for accelerating Transformer models on NVIDIA GPUs, including using 8-bit floating point (FP8) precision on Hopper and Ada GPUs, to provide better performance with lower memory utilization in both training and inference.
https://docs.nvidia.com/deeplearning/transformer-engine/user-guide/index.html
Apache License 2.0
1.6k stars 255 forks source link

[JAX] Fixing `unused-variable` warning at TE/JAX extension compile #937

Closed denera closed 2 weeks ago

denera commented 2 weeks ago

Description

Plain C asserts in TE/JAX custom ops get optimized out of the code at compile time and trigger unused-variable warnings. This PR replaces these asserts with NVTE_CHECK() to avoid the warnings. Also removes unused SM margin variables.

Type of change

Changes

Checklist:

phu0ngng commented 2 weeks ago

LGTM!