Skip to content

Commit 4c657b6

Browse files
committed
Update docs for patch 12.2.1
1 parent dfd31fa commit 4c657b6

39 files changed

+780
-7290
lines changed

docs/_sources/release.md.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ maxdepth: 3
66
---
77

88
12.3.0 <release/12.3.0-notes>
9+
12.2.1 <release/12.2.1-notes>
910
12.2.0 <release/12.2.0-notes>
1011
12.1.0 <release/12.1.0-notes>
1112
12.0.0 <release/12.0.0-notes>
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# CUDA Python 12.2.1 Release notes
2+
3+
Released on January 8, 2024
4+
5+
## Hightlights
6+
- Compatibility with Cython 3
7+
8+
## Limitations
9+
10+
### CUDA Functions Not Supported in this Release
11+
12+
- Symbol APIs
13+
- cudaGraphExecMemcpyNodeSetParamsFromSymbol
14+
- cudaGraphExecMemcpyNodeSetParamsToSymbol
15+
- cudaGraphAddMemcpyNodeToSymbol
16+
- cudaGraphAddMemcpyNodeFromSymbol
17+
- cudaGraphMemcpyNodeSetParamsToSymbol
18+
- cudaGraphMemcpyNodeSetParamsFromSymbol
19+
- cudaMemcpyToSymbol
20+
- cudaMemcpyFromSymbol
21+
- cudaMemcpyToSymbolAsync
22+
- cudaMemcpyFromSymbolAsync
23+
- cudaGetSymbolAddress
24+
- cudaGetSymbolSize
25+
- cudaGetFuncBySymbol
26+
- Launch Options
27+
- cudaLaunchKernel
28+
- cudaLaunchCooperativeKernel
29+
- cudaLaunchCooperativeKernelMultiDevice
30+
- cudaSetValidDevices
31+
- cudaVDPAUSetVDPAUDevice

docs/_static/basic.css

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,13 +326,15 @@ p.sidebar-title {
326326
}
327327
nav.contents,
328328
aside.topic,
329+
329330
div.admonition, div.topic, blockquote {
330331
clear: left;
331332
}
332333

333334
/* -- topics ---------------------------------------------------------------- */
334335
nav.contents,
335336
aside.topic,
337+
336338
div.topic {
337339
border: 1px solid #ccc;
338340
padding: 7px;
@@ -373,6 +375,7 @@ div.sidebar > :last-child,
373375
aside.sidebar > :last-child,
374376
nav.contents > :last-child,
375377
aside.topic > :last-child,
378+
376379
div.topic > :last-child,
377380
div.admonition > :last-child {
378381
margin-bottom: 0;
@@ -382,6 +385,7 @@ div.sidebar::after,
382385
aside.sidebar::after,
383386
nav.contents::after,
384387
aside.topic::after,
388+
385389
div.topic::after,
386390
div.admonition::after,
387391
blockquote::after {
@@ -606,6 +610,26 @@ ol.simple p,
606610
ul.simple p {
607611
margin-bottom: 0;
608612
}
613+
614+
/* Docutils 0.17 and older (footnotes & citations) */
615+
dl.footnote > dt,
616+
dl.citation > dt {
617+
float: left;
618+
margin-right: 0.5em;
619+
}
620+
621+
dl.footnote > dd,
622+
dl.citation > dd {
623+
margin-bottom: 0em;
624+
}
625+
626+
dl.footnote > dd:after,
627+
dl.citation > dd:after {
628+
content: "";
629+
clear: both;
630+
}
631+
632+
/* Docutils 0.18+ (footnotes & citations) */
609633
aside.footnote > span,
610634
div.citation > span {
611635
float: left;
@@ -630,6 +654,8 @@ div.citation > p:last-of-type:after {
630654
clear: both;
631655
}
632656

657+
/* Footnotes & citations ends */
658+
633659
dl.field-list {
634660
display: grid;
635661
grid-template-columns: fit-content(30%) auto;
@@ -642,6 +668,10 @@ dl.field-list > dt {
642668
padding-right: 5px;
643669
}
644670

671+
dl.field-list > dt:after {
672+
content: ":";
673+
}
674+
645675
dl.field-list > dd {
646676
padding-left: 0.5em;
647677
margin-top: 0em;

docs/_static/doctools.js

Lines changed: 119 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,6 @@
1010
*/
1111
"use strict";
1212

13-
const BLACKLISTED_KEY_CONTROL_ELEMENTS = new Set([
14-
"TEXTAREA",
15-
"INPUT",
16-
"SELECT",
17-
"BUTTON",
18-
]);
19-
2013
const _ready = (callback) => {
2114
if (document.readyState !== "loading") {
2215
callback();
@@ -25,11 +18,73 @@ const _ready = (callback) => {
2518
}
2619
};
2720

21+
/**
22+
* highlight a given string on a node by wrapping it in
23+
* span elements with the given class name.
24+
*/
25+
const _highlight = (node, addItems, text, className) => {
26+
if (node.nodeType === Node.TEXT_NODE) {
27+
const val = node.nodeValue;
28+
const parent = node.parentNode;
29+
const pos = val.toLowerCase().indexOf(text);
30+
if (
31+
pos >= 0 &&
32+
!parent.classList.contains(className) &&
33+
!parent.classList.contains("nohighlight")
34+
) {
35+
let span;
36+
37+
const closestNode = parent.closest("body, svg, foreignObject");
38+
const isInSVG = closestNode && closestNode.matches("svg");
39+
if (isInSVG) {
40+
span = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
41+
} else {
42+
span = document.createElement("span");
43+
span.classList.add(className);
44+
}
45+
46+
span.appendChild(document.createTextNode(val.substr(pos, text.length)));
47+
parent.insertBefore(
48+
span,
49+
parent.insertBefore(
50+
document.createTextNode(val.substr(pos + text.length)),
51+
node.nextSibling
52+
)
53+
);
54+
node.nodeValue = val.substr(0, pos);
55+
56+
if (isInSVG) {
57+
const rect = document.createElementNS(
58+
"http://www.w3.org/2000/svg",
59+
"rect"
60+
);
61+
const bbox = parent.getBBox();
62+
rect.x.baseVal.value = bbox.x;
63+
rect.y.baseVal.value = bbox.y;
64+
rect.width.baseVal.value = bbox.width;
65+
rect.height.baseVal.value = bbox.height;
66+
rect.setAttribute("class", className);
67+
addItems.push({ parent: parent, target: rect });
68+
}
69+
}
70+
} else if (node.matches && !node.matches("button, select, textarea")) {
71+
node.childNodes.forEach((el) => _highlight(el, addItems, text, className));
72+
}
73+
};
74+
const _highlightText = (thisNode, text, className) => {
75+
let addItems = [];
76+
_highlight(thisNode, addItems, text, className);
77+
addItems.forEach((obj) =>
78+
obj.parent.insertAdjacentElement("beforebegin", obj.target)
79+
);
80+
};
81+
2882
/**
2983
* Small JavaScript module for the documentation.
3084
*/
3185
const Documentation = {
3286
init: () => {
87+
Documentation.highlightSearchWords();
3388
Documentation.initDomainIndexTable();
3489
Documentation.initOnKeyListeners();
3590
},
@@ -71,6 +126,51 @@ const Documentation = {
71126
Documentation.LOCALE = catalog.locale;
72127
},
73128

129+
/**
130+
* highlight the search words provided in the url in the text
131+
*/
132+
highlightSearchWords: () => {
133+
const highlight =
134+
new URLSearchParams(window.location.search).get("highlight") || "";
135+
const terms = highlight.toLowerCase().split(/\s+/).filter(x => x);
136+
if (terms.length === 0) return; // nothing to do
137+
138+
// There should never be more than one element matching "div.body"
139+
const divBody = document.querySelectorAll("div.body");
140+
const body = divBody.length ? divBody[0] : document.querySelector("body");
141+
window.setTimeout(() => {
142+
terms.forEach((term) => _highlightText(body, term, "highlighted"));
143+
}, 10);
144+
145+
const searchBox = document.getElementById("searchbox");
146+
if (searchBox === null) return;
147+
searchBox.appendChild(
148+
document
149+
.createRange()
150+
.createContextualFragment(
151+
'<p class="highlight-link">' +
152+
'<a href="javascript:Documentation.hideSearchWords()">' +
153+
Documentation.gettext("Hide Search Matches") +
154+
"</a></p>"
155+
)
156+
);
157+
},
158+
159+
/**
160+
* helper function to hide the search marks again
161+
*/
162+
hideSearchWords: () => {
163+
document
164+
.querySelectorAll("#searchbox .highlight-link")
165+
.forEach((el) => el.remove());
166+
document
167+
.querySelectorAll("span.highlighted")
168+
.forEach((el) => el.classList.remove("highlighted"));
169+
const url = new URL(window.location);
170+
url.searchParams.delete("highlight");
171+
window.history.replaceState({}, "", url);
172+
},
173+
74174
/**
75175
* helper function to focus on search bar
76176
*/
@@ -110,11 +210,15 @@ const Documentation = {
110210
)
111211
return;
112212

213+
const blacklistedElements = new Set([
214+
"TEXTAREA",
215+
"INPUT",
216+
"SELECT",
217+
"BUTTON",
218+
]);
113219
document.addEventListener("keydown", (event) => {
114-
// bail for input elements
115-
if (BLACKLISTED_KEY_CONTROL_ELEMENTS.has(document.activeElement.tagName)) return;
116-
// bail with special keys
117-
if (event.altKey || event.ctrlKey || event.metaKey) return;
220+
if (blacklistedElements.has(document.activeElement.tagName)) return; // bail for input elements
221+
if (event.altKey || event.ctrlKey || event.metaKey) return; // bail with special keys
118222

119223
if (!event.shiftKey) {
120224
switch (event.key) {
@@ -136,6 +240,10 @@ const Documentation = {
136240
event.preventDefault();
137241
}
138242
break;
243+
case "Escape":
244+
if (!DOCUMENTATION_OPTIONS.ENABLE_SEARCH_SHORTCUTS) break;
245+
Documentation.hideSearchWords();
246+
event.preventDefault();
139247
}
140248
}
141249

docs/_static/documentation_options.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ var DOCUMENTATION_OPTIONS = {
1010
SOURCELINK_SUFFIX: '.txt',
1111
NAVIGATION_WITH_KEYS: false,
1212
SHOW_SEARCH_SUMMARY: true,
13-
ENABLE_SEARCH_SHORTCUTS: true,
13+
ENABLE_SEARCH_SHORTCUTS: false,
1414
};

docs/_static/pygments.css

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
.highlight .cs { color: #8f5902; font-style: italic } /* Comment.Special */
2323
.highlight .gd { color: #a40000 } /* Generic.Deleted */
2424
.highlight .ge { color: #000000; font-style: italic } /* Generic.Emph */
25-
.highlight .ges { color: #000000; font-weight: bold; font-style: italic } /* Generic.EmphStrong */
2625
.highlight .gr { color: #ef2929 } /* Generic.Error */
2726
.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
2827
.highlight .gi { color: #00A000 } /* Generic.Inserted */
@@ -108,7 +107,6 @@ body[data-theme="dark"] .highlight .c1 { color: #ababab; font-style: italic } /*
108107
body[data-theme="dark"] .highlight .cs { color: #e50808; font-weight: bold; background-color: #520000 } /* Comment.Special */
109108
body[data-theme="dark"] .highlight .gd { color: #d22323 } /* Generic.Deleted */
110109
body[data-theme="dark"] .highlight .ge { color: #d0d0d0; font-style: italic } /* Generic.Emph */
111-
body[data-theme="dark"] .highlight .ges { color: #d0d0d0; font-weight: bold; font-style: italic } /* Generic.EmphStrong */
112110
body[data-theme="dark"] .highlight .gr { color: #d22323 } /* Generic.Error */
113111
body[data-theme="dark"] .highlight .gh { color: #ffffff; font-weight: bold } /* Generic.Heading */
114112
body[data-theme="dark"] .highlight .gi { color: #589819 } /* Generic.Inserted */
@@ -194,7 +192,6 @@ body:not([data-theme="light"]) .highlight .c1 { color: #ababab; font-style: ital
194192
body:not([data-theme="light"]) .highlight .cs { color: #e50808; font-weight: bold; background-color: #520000 } /* Comment.Special */
195193
body:not([data-theme="light"]) .highlight .gd { color: #d22323 } /* Generic.Deleted */
196194
body:not([data-theme="light"]) .highlight .ge { color: #d0d0d0; font-style: italic } /* Generic.Emph */
197-
body:not([data-theme="light"]) .highlight .ges { color: #d0d0d0; font-weight: bold; font-style: italic } /* Generic.EmphStrong */
198195
body:not([data-theme="light"]) .highlight .gr { color: #d22323 } /* Generic.Error */
199196
body:not([data-theme="light"]) .highlight .gh { color: #ffffff; font-weight: bold } /* Generic.Heading */
200197
body:not([data-theme="light"]) .highlight .gi { color: #589819 } /* Generic.Inserted */

0 commit comments

Comments
 (0)