-
Notifications
You must be signed in to change notification settings - Fork 122
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
updates for metal backend #654
Conversation
yshekel
commented
Nov 11, 2024
•
edited
Loading
edited
- add script to pull metal backend
- update cmake to build metal backend
- update rust wrappers with feature to build metal backend
- update examples to support any backend
- updated C++ test suites to share logic for selecting main device
@@ -37,7 +37,9 @@ set(CMAKE_POSITION_INDEPENDENT_CODE ON) | |||
# Build options | |||
option(BUILD_TESTS "Build unit tests. Default=OFF" OFF) | |||
option(CPU_BACKEND "Build CPU backend. Default=ON" ON) | |||
# TODO Yuval: consider decoupling backends from frontend build. Is that worth the effort? |
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.
is it?
Over time the cpu backend compilation time will be less efficient
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.
I referred to cuda and metal. I did not intend to split the CPU from this repo or build it separately.
We can discuss it but it's not related to this PR.
About metal and cuda, we could separate them entirely from the frontend cmake but it will complicate the backend. I am not sure if it is really worth it at this point although it is probably better to decouple the backends build entirely if we can.
scripts/pull_cuda_backend.sh
Outdated
|
||
echo "Trying to pull CUDA backend commit '${CUDA_BACKEND}' to '${ABS_BACKEND_DIR}'" | ||
echo "Trying to pull Metal backend commit '${CUDA_BACKEND}' to '${ABS_CUDA_DIR}'" |
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.
You probably meant CUDA here
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.
fixed
d7babce
to
4947c00
Compare
3661fef
to
4d72054
Compare
4d72054
to
b7c5c0c
Compare
e7e0052
to
a0c3263
Compare