mirror of
https://github.com/deepseek-ai/DeepGEMM.git
synced 2026-11-05 00:47:26 +00:00
[PR #439] [CLOSED] [Bugfix][Layout] Add cuda_fp8.h include to fix __nv_fp8_e4m3 undefined #447
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
deepseek-ai/DeepGEMM#447
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/deepseek-ai/DeepGEMM/pull/439
Author: @XFDG
Created: 9/11/2026
Status: ❌ Closed
Base:
main← Head:fix/438-mega-mhc-fp8-include📝 Commits (1)
ea2b780[Bugfix][Layout] Add cuda_fp8.h include to fix __nv_fp8_e4m3 undefined📊 Changes
1 file changed (+2 additions, -0 deletions)
View changed files
📝
deep_gemm/include/deep_gemm/layout/mega_mhc.cuh(+2 -0)📄 Description
Summary
mega_mhc.cuhuses__nv_fp8_e4m3inNormArgs, which is compiled by host g++ viacsrc/python_api.cpp. CUTLASS gatescuda_fp8.hbehindCUDA_FP8_ENABLEDwhich requires__CUDACC_VER_*— defined only by nvcc, not g++ — so the type is invisible during host compilation.Fix
Add
#include <cuda_fp8.h>directly inmega_mhc.cuhbefore any other includes, so the type is visible to both nvcc and g++.Testing
bash ./develop.shon B200 (SM100, CUDA 13.1, gcc-13)python3 -c "import deep_gemm; print(deep_gemm.__version__)"passesFixes #438
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.