Skip to content

Commit 916c93d

Browse files
committed
disable examples for now
1 parent 2a7fc3f commit 916c93d

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

examples/generic_vecadd.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
from typing import Any, TypeVar
2-
import luisa_lang
3-
from luisa_lang import Buffer, dispatch_id, static_assert
1+
# from typing import Any, TypeVar
2+
# import luisa_lang
3+
# from luisa_lang import Buffer, dispatch_id, static_assert
44

5-
T = TypeVar("T", bound=Any)
5+
# T = TypeVar("T", bound=Any)
66

7-
@luisa_lang.kernel
8-
def vecadd(a: Buffer[T], b: Buffer[T], c: Buffer[T]):
9-
static_assert(
10-
type(a[0] + b[0]) == type(c[0]),
11-
f"Type {type(a)} does not support addition.",
12-
)
13-
tid = dispatch_id().x
14-
c[tid] = a[tid] + b[tid]
7+
# @luisa_lang.kernel
8+
# def vecadd(a: Buffer[T], b: Buffer[T], c: Buffer[T]):
9+
# static_assert(
10+
# type(a[0] + b[0]) == type(c[0]),
11+
# f"Type {type(a)} does not support addition.",
12+
# )
13+
# tid = dispatch_id().x
14+
# c[tid] = a[tid] + b[tid]

examples/vecadd.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import luisa_lang
2-
from luisa_lang import Buffer, dispatch_id
3-
from dataclasses import dataclass
1+
# import luisa_lang
2+
# from luisa_lang import Buffer, dispatch_id
3+
# from dataclasses import dataclass
44

55

6-
@luisa_lang.kernel
7-
def vecadd(a: Buffer[float], b: Buffer[float], c: Buffer[float]):
8-
tid = dispatch_id().x
9-
c[tid] = a[tid] + b[tid]
6+
# @luisa_lang.kernel
7+
# def vecadd(a: Buffer[float], b: Buffer[float], c: Buffer[float]):
8+
# tid = dispatch_id().x
9+
# c[tid] = a[tid] + b[tid]

0 commit comments

Comments
 (0)