CARVIEW |
Select Language
HTTP/2 200
date: Sat, 19 Jul 2025 15:27:23 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/pytorch/pytorch.git
etag: W/"0e424696aa85d123c7c830a71040590b"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=UChTi%2FcbpY0bK3ZGSBcacwDtasSFz5k%2B8XBpoM340xOzhnsGw%2FP6rht0pbgvr4pDagSh9KilvNoUBlpzBLYBIlgfDUjodzXagAjM1rU%2BaDXHnaBpmJK0A21YrobpOB3GVHjIWYQz01HJwSyeUx03btpgGjiq0Le%2FovQHG%2FCdsaPJ8QborrCK%2BJ%2F7qDqRnYF3HvErYlv9xqraSUL03yZBWNJw0LZKKr2HxpGNS6%2FbIH2S16vQbrlRPR7eu8bJ0g%2Bus63xiA7kLjIMUNYtElOcIA%3D%3D--55cU%2B2ZVbR8Ln61R--gsmmblUFQ4gz0j7AjJigGA%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1786331394.1752938842; Path=/; Domain=github.com; Expires=Sun, 19 Jul 2026 15:27:22 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Sun, 19 Jul 2026 15:27:22 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: 945C:2AF797:B6ED6:E454D:687BB95A
Make Context to be Device-agnostic Step by Step (2/N) (#136526) · pytorch/pytorch@8aacbee · GitHub
Copy file name to clipboardExpand all lines: aten/src/ATen/cuda/detail/CUDAHooks.cpp
Copy file name to clipboardExpand all lines: aten/src/ATen/cuda/detail/CUDAHooks.h
Copy file name to clipboardExpand all lines: aten/src/ATen/detail/AcceleratorHooksInterface.h
Copy file name to clipboardExpand all lines: aten/src/ATen/detail/CUDAHooksInterface.h
Copy file name to clipboardExpand all lines: aten/src/ATen/detail/HIPHooksInterface.h
Copy file name to clipboardExpand all lines: aten/src/ATen/detail/IPUHooksInterface.h
Copy file name to clipboardExpand all lines: aten/src/ATen/detail/MPSHooksInterface.h
Copy file name to clipboardExpand all lines: aten/src/ATen/detail/PrivateUse1HooksInterface.h
Copy file name to clipboardExpand all lines: aten/src/ATen/detail/XPUHooksInterface.h
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 24.7k
Commit 8aacbee
Make Context to be Device-agnostic Step by Step (2/N) (#136526)
----
- add new method(getDefaultGenerator, getNewGenerator) into AcceleratorHooksInterface
Pull Request resolved: #136526
Approved by: https://github.com/ezyang, https://github.com/EikanWang
ghstack dependencies: #1383231 parent 649f811 commit 8aacbeeCopy full SHA for 8aacbee
File tree
Expand file treeCollapse file tree
20 files changed
+73
-83
lines changedFilter options
- aten/src/ATen
- cuda/detail
- detail
- mps
- native/cudnn
- xpu/detail
- torch/csrc
- api/src
- mps
Expand file treeCollapse file tree
20 files changed
+73
-83
lines changed+2-12Lines changed: 2 additions & 12 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
43 | 43 |
| |
44 | 44 |
| |
45 | 45 |
| |
46 |
| - | |
47 |
| - | |
48 |
| - | |
49 |
| - | |
50 |
| - | |
51 |
| - | |
52 |
| - | |
53 |
| - | |
54 |
| - | |
55 |
| - | |
56 |
| - | |
57 | 46 |
| |
58 |
| - | |
| 47 | + | |
| 48 | + | |
59 | 49 |
| |
60 | 50 |
| |
61 | 51 |
| |
|
aten/src/ATen/cuda/detail/CUDAHooks.cpp
Copy file name to clipboardExpand all lines: aten/src/ATen/cuda/detail/CUDAHooks.cpp+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
103 | 103 |
| |
104 | 104 |
| |
105 | 105 |
| |
106 |
| - | |
| 106 | + | |
107 | 107 |
| |
108 | 108 |
| |
109 | 109 |
| |
|
aten/src/ATen/cuda/detail/CUDAHooks.h
Copy file name to clipboardExpand all lines: aten/src/ATen/cuda/detail/CUDAHooks.h+2-1Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
22 | 22 |
| |
23 | 23 |
| |
24 | 24 |
| |
25 |
| - | |
| 25 | + | |
| 26 | + | |
26 | 27 |
| |
27 | 28 |
| |
28 | 29 |
| |
|
aten/src/ATen/detail/AcceleratorHooksInterface.h
Copy file name to clipboardExpand all lines: aten/src/ATen/detail/AcceleratorHooksInterface.h+16-1Lines changed: 16 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
| 3 | + | |
| 4 | + | |
| 5 | + | |
3 | 6 |
| |
4 | 7 |
| |
5 |
| - | |
| 8 | + | |
6 | 9 |
| |
| 10 | + | |
7 | 11 |
| |
8 | 12 |
| |
9 | 13 |
| |
| |||
58 | 62 |
| |
59 | 63 |
| |
60 | 64 |
| |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
61 | 75 |
| |
62 | 76 |
| |
63 | 77 |
| |
| 78 | + | |
64 | 79 |
|
aten/src/ATen/detail/CUDAHooksInterface.h
Copy file name to clipboardExpand all lines: aten/src/ATen/detail/CUDAHooksInterface.h+5-8Lines changed: 5 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6 | 6 |
| |
7 | 7 |
| |
8 | 8 |
| |
9 |
| - | |
| 9 | + | |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
| 12 | + | |
12 | 13 |
| |
13 | 14 |
| |
14 | 15 |
| |
15 |
| - | |
16 |
| - | |
17 |
| - | |
18 |
| - | |
19 | 16 |
| |
20 | 17 |
| |
21 | 18 |
| |
| |||
69 | 66 |
| |
70 | 67 |
| |
71 | 68 |
| |
72 |
| - | |
73 |
| - | |
| 69 | + | |
| 70 | + | |
74 | 71 |
| |
75 | 72 |
| |
76 | 73 |
| |
|
aten/src/ATen/detail/HIPHooksInterface.h
Copy file name to clipboardExpand all lines: aten/src/ATen/detail/HIPHooksInterface.h+3-12Lines changed: 3 additions & 12 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 |
| - | |
5 | 4 |
| |
6 |
| - | |
7 | 5 |
| |
8 | 6 |
| |
9 | 7 |
| |
10 | 8 |
| |
11 | 9 |
| |
12 | 10 |
| |
13 |
| - | |
14 |
| - | |
15 |
| - | |
16 |
| - | |
17 | 11 |
| |
18 | 12 |
| |
19 | 13 |
| |
| |||
30 | 24 |
| |
31 | 25 |
| |
32 | 26 |
| |
33 |
| - | |
34 |
| - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
35 | 30 |
| |
36 | 31 |
| |
37 | 32 |
| |
| |||
50 | 45 |
| |
51 | 46 |
| |
52 | 47 |
| |
53 |
| - | |
54 |
| - | |
55 |
| - | |
56 |
| - | |
57 | 48 |
| |
58 | 49 |
| |
59 | 50 |
| |
|
aten/src/ATen/detail/IPUHooksInterface.h
Copy file name to clipboardExpand all lines: aten/src/ATen/detail/IPUHooksInterface.h+7-10Lines changed: 7 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 |
| - | |
4 | 3 |
| |
5 | 4 |
| |
6 | 5 |
| |
| |||
9 | 8 |
| |
10 | 9 |
| |
11 | 10 |
| |
12 |
| - | |
| 11 | + | |
13 | 12 |
| |
14 | 13 |
| |
15 | 14 |
| |
| |||
21 | 20 |
| |
22 | 21 |
| |
23 | 22 |
| |
24 |
| - | |
25 |
| - | |
26 |
| - | |
27 |
| - | |
28 |
| - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
29 | 26 |
| |
30 | 27 |
| |
31 |
| - | |
32 |
| - | |
33 |
| - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
34 | 31 |
| |
35 | 32 |
| |
36 | 33 |
| |
|
aten/src/ATen/detail/MPSHooksInterface.h
Copy file name to clipboardExpand all lines: aten/src/ATen/detail/MPSHooksInterface.h+4-3Lines changed: 4 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2 | 2 |
| |
3 | 3 |
| |
4 | 4 |
| |
5 |
| - | |
6 |
| - | |
7 | 5 |
| |
| 6 | + | |
| 7 | + | |
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
| |||
31 | 31 |
| |
32 | 32 |
| |
33 | 33 |
| |
34 |
| - | |
| 34 | + | |
| 35 | + | |
35 | 36 |
| |
36 | 37 |
| |
37 | 38 |
| |
|
aten/src/ATen/detail/PrivateUse1HooksInterface.h
Copy file name to clipboardExpand all lines: aten/src/ATen/detail/PrivateUse1HooksInterface.h+8-6Lines changed: 8 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 |
| - | |
4 | 3 |
| |
5 | 4 |
| |
6 | 5 |
| |
7 | 6 |
| |
8 | 7 |
| |
| 8 | + | |
9 | 9 |
| |
| 10 | + | |
10 | 11 |
| |
11 | 12 |
| |
12 | 13 |
| |
13 | 14 |
| |
14 |
| - | |
15 |
| - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
16 | 18 |
| |
17 | 19 |
| |
18 | 20 |
| |
| |||
24 | 26 |
| |
25 | 27 |
| |
26 | 28 |
| |
27 |
| - | |
| 29 | + | |
28 | 30 |
| |
29 | 31 |
| |
30 | 32 |
| |
31 |
| - | |
| 33 | + | |
32 | 34 |
| |
33 | 35 |
| |
34 | 36 |
| |
35 | 37 |
| |
36 | 38 |
| |
37 |
| - | |
| 39 | + | |
38 | 40 |
| |
39 | 41 |
| |
40 | 42 |
| |
|
aten/src/ATen/detail/XPUHooksInterface.h
Copy file name to clipboardExpand all lines: aten/src/ATen/detail/XPUHooksInterface.h+7-8Lines changed: 7 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
7 |
| - | |
8 | 7 |
| |
9 | 8 |
| |
10 | 9 |
| |
| |||
32 | 31 |
| |
33 | 32 |
| |
34 | 33 |
| |
35 |
| - | |
36 |
| - | |
37 |
| - | |
38 |
| - | |
39 |
| - | |
40 |
| - | |
41 |
| - | |
| 34 | + | |
| 35 | + | |
42 | 36 |
| |
43 | 37 |
| |
44 | 38 |
| |
45 | 39 |
| |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
46 | 45 |
| |
47 | 46 |
| |
48 | 47 |
| |
|
You can’t perform that action at this time.
0 commit comments