[PR #166] [CLOSED] build: replace CUDART_INF_F with INFINITY for HIP-only toolchains (fixes #157) #2485

Closed
opened 2026-11-04 02:00:37 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/166
Author: @samuelishida
Created: 9/29/2026
Status: ❌ Closed

Base: main ← Head: pr-infinity


📝 Commits (1)

  • a3351b2 build: replace CUDART_INF_F with INFINITY for HIP-only toolchains

📊 Changes

1 file changed (+14 additions, -14 deletions)

View changed files

📝 src/kernels/cuda/qsa_prompt_attn.cu (+14 -14)

📄 Description

qsa_prompt_attn.cu is already refused at runtime on AMD, but it still compiled with the CUDA-only <math_constants.h> header for CUDART_INF_F. Replace it with the portable INFINITY macro from <cmath> so the HIP build succeeds without a CUDA toolkit installed.

Fixes #157.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/166 **Author:** [@samuelishida](https://github.com/samuelishida) **Created:** 9/29/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `pr-infinity` --- ### 📝 Commits (1) - [`a3351b2`](https://github.com/Niko1221/Strata/commit/a3351b22cb5d8dedbb10472eeb41c5e87ba1f267) build: replace CUDART_INF_F with INFINITY for HIP-only toolchains ### 📊 Changes **1 file changed** (+14 additions, -14 deletions) <details> <summary>View changed files</summary> 📝 `src/kernels/cuda/qsa_prompt_attn.cu` (+14 -14) </details> ### 📄 Description `qsa_prompt_attn.cu` is already refused at runtime on AMD, but it still compiled with the CUDA-only `<math_constants.h>` header for `CUDART_INF_F`. Replace it with the portable `INFINITY` macro from `<cmath>` so the HIP build succeeds without a CUDA toolkit installed. Fixes #157. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-04 02:00:37 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#2485
No description provided.