10000 Revert "[ATen][CUDA][CUBLAS] cublasLtMatmul increase workspace_size (… · pytorch/pytorch@70c23a5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 70c23a5

Browse files
Revert "[ATen][CUDA][CUBLAS] cublasLtMatmul increase workspace_size (#120925)"
This reverts commit 0a38a6a. Reverted #120925 on behalf of https://github.com/clee2000 due to broke inductor models and caused accuracy regression on nightly dashboard https://hud.pytorch.org/pytorch/pytorch/commit/0a38a6ac8046e4d3f9cfaba86b7ec6517038646f https://github.com/pytorch/pytorch/actions/runs/8118465367/job/22193590228 ([comment](#120925 (comment)))
1 parent df3c8b8 commit 70c23a5

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

aten/src/ATen/cuda/CUDABlas.cpp

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -183,20 +183,13 @@ uint32_t _getAlignment(uintptr_t address) {
183183

184184
static size_t _parseChosenWorkspaceSize() {
185185
const char * val = getenv("CUBLASLT_WORKSPACE_SIZE");
186-
size_t workspace_size = 1024;
187186
#ifdef USE_ROCM
188187
if (!val) {
189188
// accept either env var
190189
val = getenv("HIPBLASLT_WORKSPACE_SIZE");
191190
}
192-
#else
193-
cudaDeviceProp* p = at::cuda::getDeviceProperties(c10::cuda::current_device());
194-
if (p->major == 8) {
195-
workspace_size = 4096;
196-
} else if (p->major >= 9) {
197-
workspace_size = 32768;
198-
}
199191
#endif
192+
size_t workspace_size = 1024; /* default size in KiB according to #73328 */
200193
if (val) {
201194
try {
202195
workspace_size = std::stoi(val);

0 commit comments

Comments
0 (0)
0