This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import time | |
| import torch | |
| torch.backends.cuda.matmul.allow_tf32 = False | |
| GROUPS = 64 | |
| for k in [3, 5, 7]: | |
| x = torch.rand(16,64,1024,1024, device="cuda", dtype=torch.float32) | |
| weight = torch.rand(64,64//GROUPS,k,k, device="cuda", dtype=torch.float32) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- syscall.c | |
| +++ syscall.c | |
| @@ -48,6 +48,39 @@ | |
| * Copyright (C) 1994-2003 by Todd M. Austin, Ph.D. and SimpleScalar, LLC. | |
| */ | |
| +#ifdef __APPLE__ | |
| + | |
| +#define __unix__ | |
| +#define unix |