[PR #26] [CLOSED] Pytest #210

Closed
opened 2026-10-26 21:14:53 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/deepseek-ai/DeepGEMM/pull/26
Author: @A-transformer
Created: 2/27/2025
Status: ❌ Closed

Base: main ← Head: pytest


📝 Commits (4)

📊 Changes

3 files changed (+113 additions, -74 deletions)

View changed files

📝 README.md (+3 -2)
📝 tests/test_core.py (+63 -59)
📝 tests/test_jit.py (+47 -13)

📄 Description

Decorate the test function with @pytest.mark.skipif(...) so the test is skipped if CUDA is unavailable. Move all testing logic into a function named test_jit() so it’s automatically discoverable by pytest.

CUTLASS Configuration
Ensure that the CUTLASS_ROOT environment variable is set. For example:
export CUTLASS_ROOT=/root/DeepGEMM/third-party/cutlass
export CPATH="$CUTLASS_ROOT/include:$CPATH"
export CPLUS_INCLUDE_PATH="$CUTLASS_ROOT/include:$CPLUS_INCLUDE_PATH"

Running the Tests:
pip install pytest
pytest tests/test_jit.py -v -s

image

pytest tests/test_core.py -v -s

image

nvidia-smi
image


🔄 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/deepseek-ai/DeepGEMM/pull/26 **Author:** [@A-transformer](https://github.com/A-transformer) **Created:** 2/27/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `pytest` --- ### 📝 Commits (4) - [`a813073`](https://github.com/deepseek-ai/DeepGEMM/commit/a813073facd1ea8dbe1b6e698c194490c031d839) pytest Integration - [`60cce9a`](https://github.com/deepseek-ai/DeepGEMM/commit/60cce9a6e3dff496734c541936a30071696d1c9e) pytest Integration - [`22c163b`](https://github.com/deepseek-ai/DeepGEMM/commit/22c163be2572719d1415d71906b7b9f7d2b4481f) pytest Integration - [`b4d5f53`](https://github.com/deepseek-ai/DeepGEMM/commit/b4d5f535bbb2a02097f16bd5eb428a9c37ca7253) pytest Integration ### 📊 Changes **3 files changed** (+113 additions, -74 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+3 -2) 📝 `tests/test_core.py` (+63 -59) 📝 `tests/test_jit.py` (+47 -13) </details> ### 📄 Description Decorate the test function with @pytest.mark.skipif(...) so the test is skipped if CUDA is unavailable. Move all testing logic into a function named test_jit() so it’s automatically discoverable by pytest. CUTLASS Configuration Ensure that the CUTLASS_ROOT environment variable is set. For example: export CUTLASS_ROOT=/root/DeepGEMM/third-party/cutlass export CPATH="$CUTLASS_ROOT/include:$CPATH" export CPLUS_INCLUDE_PATH="$CUTLASS_ROOT/include:$CPLUS_INCLUDE_PATH" Running the Tests: pip install pytest pytest tests/test_jit.py -v -s ![image](https://github.com/user-attachments/assets/a4f3946b-2d7c-407b-8ef1-af24ee3ca5a5) pytest tests/test_core.py -v -s ![image](https://github.com/user-attachments/assets/d9affc3f-5e1c-4499-bc76-ea31a94d3692) nvidia-smi ![image](https://github.com/user-attachments/assets/b03d2d4e-f135-4655-9c6c-0e663e02f440) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-26 21:14:53 +00:00
Sign in to join this conversation.
No labels
pull-request
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
deepseek-ai/DeepGEMM#210
No description provided.