-
-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding GPU support to VTL #54
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,49 @@ | ||||||||||
# All Backends in VTL Engine | ||||||||||
|
||||||||||
VTL Engine supports the following backends: | ||||||||||
- Cuda | ||||||||||
- OpenCL | ||||||||||
- OpenMP | ||||||||||
- Vulkan | ||||||||||
|
||||||||||
## Cuda | ||||||||||
First install cuda toolkit: https://developer.nvidia.com/cuda-downloads | ||||||||||
### usage: | ||||||||||
Comment on lines
+10
to
+11
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix heading punctuation and format URL. The heading should not have trailing punctuation, and the URL should be formatted as a proper link. - First install cuda toolkit: https://developer.nvidia.com/cuda-downloads
+ First install the [CUDA toolkit](https://developer.nvidia.com/cuda-downloads) Committable suggestion
Suggested change
ToolsMarkdownlint
|
||||||||||
```vlang | ||||||||||
import vtl | ||||||||||
vtl_tensor := vtl.from_array([1.0, 2, 3, 4], [2, 2])! | ||||||||||
vtl_tensor.cuda() | ||||||||||
println('My device: ${vtl_tensor.device}') | ||||||||||
|
||||||||||
``` | ||||||||||
|
||||||||||
## OpenCL | ||||||||||
First install opencl toolkit: https://www.khronos.org/opencl/ | ||||||||||
### usage: | ||||||||||
Comment on lines
+21
to
+22
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix heading punctuation and format URL. The heading should not have trailing punctuation, and the URL should be formatted as a proper link. - First install opencl toolkit: https://www.khronos.org/opencl/
+ First install the [OpenCL toolkit](https://www.khronos.org/opencl/)
ToolsMarkdownlint
|
||||||||||
```vlang | ||||||||||
import vtl | ||||||||||
vtl_tensor := vtl.from_array([1.0, 2, 3, 4], [2, 2])! | ||||||||||
vtl_tensor.opencl() | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. no need to have an extra backend for opencl. We must use VCL since it is the V official OpenCL wrapper Line 17 in ad01618
we could have an alias function called opencl tho |
||||||||||
println('My device: ${vtl_tensor.device}') | ||||||||||
|
||||||||||
``` | ||||||||||
|
||||||||||
## OpenMP | ||||||||||
### usage: | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix heading punctuation. The heading should not have trailing punctuation. - ### usage:
+ ### usage Committable suggestion
Suggested change
ToolsMarkdownlint
|
||||||||||
```vlang | ||||||||||
import vtl | ||||||||||
vtl_tensor := vtl.from_array([1.0, 2, 3, 4], [2, 2])! | ||||||||||
vtl_tensor.openmp() | ||||||||||
println('My device: ${vtl_tensor.device}') | ||||||||||
|
||||||||||
``` | ||||||||||
|
||||||||||
## Vulkan | ||||||||||
### usage: | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix heading punctuation. The heading should not have trailing punctuation. - ### usage:
+ ### usage Committable suggestion
Suggested change
ToolsMarkdownlint
|
||||||||||
```vlang | ||||||||||
import vtl | ||||||||||
vtl_tensor := vtl.from_array([1.0, 2, 3, 4], [2, 2])! | ||||||||||
vtl_tensor.vulkan() | ||||||||||
println('My device: ${vtl_tensor.device}') | ||||||||||
|
||||||||||
``` |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Cuda backend for VTL |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# OpenCL backend for VTL |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# OpenMP backend for VTL |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Vulkan backend for VTL |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Image module for VTL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix unordered list indentation.
The unordered list items are indented incorrectly. The correct indentation should be 2 spaces.
Committable suggestion
Tools
Markdownlint