mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-06-24 02:14:17 +00:00
compile fixes (#10442)
This commit is contained in:
parent
eb7305e6a4
commit
ef14dfb277
2 changed files with 2 additions and 2 deletions
|
|
@ -26,7 +26,7 @@ metalalloc._copyin(c,nc.tobytes())
|
|||
FLOPS = N*N*N*2
|
||||
BW = N*N*3*4
|
||||
|
||||
prog = MetalProgram(device, "test", MetalCompiler(device).compile(f"""
|
||||
prog = MetalProgram(device, "test", MetalCompiler().compile(f"""
|
||||
#include <metal_stdlib>
|
||||
#include <metal_simdgroup_matrix> // Available from Metal version 2.3 released with OS X 11.0+
|
||||
using namespace metal;
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ WORKSIZE_ROW = 16
|
|||
WORKSIZE_COL = 1
|
||||
LOCAL_SIZE = [32, WORKSIZE_COL, WORKSIZE_ROW]
|
||||
GLOBAL_SIZE = [M//(LOCAL_SIZE[0]*LOCAL_SIZE[1]*4), 1, 1]
|
||||
prog = MetalProgram(device, "test", MetalCompiler(device).compile(f"""
|
||||
prog = MetalProgram(device, "test", MetalCompiler().compile(f"""
|
||||
#include <metal_stdlib>
|
||||
using namespace metal;
|
||||
kernel void test(device float* data0, const device float* data1, const device float* data2, uint3 gid [[threadgroup_position_in_grid]], uint3 lid [[thread_position_in_threadgroup]]) {{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue