Skip to content

Commit 6a2591b

Browse files
committed
Add initial cuda-lang docs
Signed-off-by: Jay Gu <jagu@nvidia.com>
1 parent ffffc5f commit 6a2591b

43 files changed

Lines changed: 2101 additions & 121 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.flake8

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ exclude =
1010
build,
1111
env,
1212
dist,
13-
docs/build,
14-
docs/source/generated,
15-
docs/source/stubs,
16-
docs/venv,
17-
docs/source/_templates,
13+
*docs/build,
14+
*docs/source/generated,
15+
*docs/source/stubs,
16+
*docs/venv,
17+
*docs/source/_templates,
1818
experimental/cuda-lang/src/cuda/lang/_stub/nvvm.py,
1919
experimental/cuda-lang/src/cuda/lang/_stub/nvvm_mlir_interfaces.py,
2020
experimental/cuda-lang/src/cuda/lang/_stub/_libdevice.py,

.gitignore

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ build/
1616
.cache
1717
.idea
1818
.rgignore
19-
docs/venv
20-
docs/build
21-
docs/source/generated
22-
docs/source/stubs
19+
**/docs/venv
20+
**/docs/build
21+
**/docs/source/generated
22+
**/docs/source/stubs
2323
*.benchmarks
2424
.vscode/
2525
/internal
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# SPDX-FileCopyrightText: Copyright (c) <2026> NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
5+
# You can set these variables from the command line, and also
6+
# from the environment for the first two.
7+
SPHINXOPTS ?= -W
8+
VENV ?=
9+
BINDIR = $(if $(VENV),$(VENV)/bin/,)
10+
SPHINXBUILD ?= $(BINDIR)sphinx-build
11+
SPHINXAUTOBUILD ?= $(BINDIR)sphinx-autobuild
12+
PYTHON ?= $(BINDIR)python
13+
SOURCEDIR = source
14+
BUILDDIR = build
15+
PROJECTDIR = $(CURDIR)/..
16+
AUTOBUILD_OPTS = --watch $(PROJECTDIR)/src/cuda/lang --host 0.0.0.0 --port 8000
17+
18+
# Put it first so that "make" without argument is like "make help".
19+
help:
20+
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
21+
22+
.PHONY: help Makefile clean
23+
24+
clean:
25+
rm -rf $(SOURCEDIR)/generated
26+
rm -rf $(BUILDDIR)
27+
28+
serve: html
29+
$(PYTHON) -m http.server -d "$(BUILDDIR)/html"
30+
31+
watch:
32+
$(SPHINXAUTOBUILD) $(AUTOBUILD_OPTS) "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
33+
34+
# Catch-all target: route all unknown targets to Sphinx using the new
35+
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
36+
%: Makefile
37+
$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) --show-traceback

0 commit comments

Comments
 (0)