-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
64bit indexing fused adam #5187
Conversation
@microsoft-github-policy-service agree |
@@ -30,7 +30,7 @@ typedef enum : int { | |||
|
|||
using MATH_T = float; | |||
|
|||
template <typename T> | |||
template <typename T, typename index_t> | |||
struct AdamFunctor { | |||
__device__ __forceinline__ void operator()(int chunk_size, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI this chunk_size is still an int and not int64/index_t
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@garrett4wade - thoughts on this?
FYI @garrett4wade - thoughts on the comments above or merging this PR? |
## The Issue Applying `FusedAdam` on large tensors will cause an error `CUDA error: an illegal memory access was encountered`. microsoft#3429 NVIDIA/apex#1654 ## PR Content Following the solution in the apex repository (NVIDIA/apex#1765), changing indexing type to `int64` if necessary. --------- Co-authored-by: Michael Wyatt <[email protected]> Co-authored-by: Logan Adams <[email protected]>
## The Issue Applying `FusedAdam` on large tensors will cause an error `CUDA error: an illegal memory access was encountered`. microsoft#3429 NVIDIA/apex#1654 ## PR Content Following the solution in the apex repository (NVIDIA/apex#1765), changing indexing type to `int64` if necessary. --------- Co-authored-by: Michael Wyatt <[email protected]> Co-authored-by: Logan Adams <[email protected]>
## The Issue Applying `FusedAdam` on large tensors will cause an error `CUDA error: an illegal memory access was encountered`. microsoft#3429 NVIDIA/apex#1654 ## PR Content Following the solution in the apex repository (NVIDIA/apex#1765), changing indexing type to `int64` if necessary. --------- Co-authored-by: Michael Wyatt <[email protected]> Co-authored-by: Logan Adams <[email protected]>
The Issue
Applying
FusedAdam
on large tensors will cause an errorCUDA error: an illegal memory access was encountered
.#3429
NVIDIA/apex#1654
PR Content
Following the solution in the apex repository (NVIDIA/apex#1765), changing indexing type to
int64
if necessary.