-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
047d2eb
commit 5d60a36
Showing
15 changed files
with
119 additions
and
72 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,10 @@ | ||
# Array programming | ||
|
||
The Metal array type, `MtlArray`, generally implements the Base array interface and all of its | ||
expected methods. | ||
The Metal array type, `MtlArray`, generally implements the Base array interface | ||
and all of its expected methods. | ||
|
||
However, there is the special function `mtl` for transferring an array over to the gpu. For compatibility reasons, it will automatically convert arrays of `Float64` to `Float32`. | ||
|
||
```@docs | ||
mtl | ||
``` |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,6 +53,7 @@ MtlThreadGroupArray | |
## Synchronization | ||
|
||
```@docs | ||
MemoryFlags | ||
threadgroup_barrier | ||
simdgroup_barrier | ||
``` |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Metal Performance Shaders | ||
|
||
This section lists the package's public functionality that corresponds to the Metal | ||
Performance Shaders functions. For more information about these functions, or to see | ||
which functions have yet to be implemented in this package, please consult | ||
the [Metal Performance Shaders Documentation](https://developer.apple.com/documentation/metalperformanceshaders?language=objc). | ||
|
||
## Matrices and Vectors | ||
|
||
```@docs | ||
MPS.MPSMatrix | ||
MPS.MPSVector | ||
``` | ||
|
||
### Matrix Arithmetic Operators | ||
|
||
```@docs | ||
MPS.matmul! | ||
MPS.matvecmul! | ||
MPS.topk | ||
MPS.topk! | ||
``` | ||
|
||
### Linear Algebra | ||
|
||
Many of the currently implemented MPS functions are for linear algebra operations. | ||
Therefore, you use them by calling the corresponding LinearAlgebra function with an | ||
`MtlArray`. They are nonetheless listed below: |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
# Frequently Asked Questions | ||
|
||
## Can you wrap this Metal API? | ||
|
||
Most likely. Any help on designing or implementing high-level wrappers for MSL's low-level functionality | ||
is greatly appreciated, so please consider [contributing](contributing.md) your uses of these APIs on the | ||
respective repositories. | ||
respective repositories. |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.