---
id: pr-tilelang-1597
repo: tile-ai/tilelang
pr: 1597
title: '[Fix][CuteDSL] add support for tanh/tanhf (fixes #1595)'
author: lucifer1004
date: '2026-01-04'
url: https://github.com/tile-ai/tilelang/pull/1597
source_category: upstream-code
architectures:
- sm100
tags:
- cute
- tile-dsl
techniques: []
hardware_features: []
kernel_types: []
languages:
- cute-dsl
captured_at: '2026-05-16'
status: merged
merge_sha: ebf3b68fdcd5fa909076ef5248a5d48b442a5f0d
inclusion_reason: Search-matched CUDA kernel optimization PR; materialize diff/source before synthesis.
changed_paths:
- src/target/codegen_cutedsl.cc
- tilelang/contrib/cutedsl/math.py
artifact_dir: evidence/pull-bundles/tilelang/gh-1597
head_ref_oid: 0c75b22191918dcf1dca575acedf3d201534be90
---
# [Fix][CuteDSL] add support for tanh/tanhf (fixes #1595)

- Repository: `tile-ai/tilelang`
- PR: [1597](https://github.com/tile-ai/tilelang/pull/1597)
- Decision: `Search-matched CUDA kernel optimization PR; materialize diff/source before synthesis.`
- Reason: Search-matched CUDA kernel optimization PR; materialize diff/source before synthesis.

## Changed Paths

- `src/target/codegen_cutedsl.cc`
- `tilelang/contrib/cutedsl/math.py`

## Evidence Bundle

`evidence/pull-bundles/tilelang/gh-1597`
