"src/vscode:/vscode.git/clone" did not exist on "b7e97992e801a729892f6feb8b6660889ccab3a7"
customize.py 493 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
"""The language interface for tl programs."""

from tvm.script import tir as T


def atomic_add(dst, value):
    return T.call_extern("handle", "atomicAdd", T.address_of(dst), value)


def atomic_addx2(dst, value):
13
    return T.call_extern("handle", "atomicAddx2", T.address_of(dst), T.address_of(value))
14
15
16


def dp4a(A, B, C):
17
    return T.call_extern("handle", "DP4A", T.address_of(A), T.address_of(B), T.address_of(C))