Skip to content
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

Merged
merged 27 commits into from
Nov 24, 2024
Merged

updates for metal backend #654

merged 27 commits into from
Nov 24, 2024

Conversation

yshekel
Copy link
Collaborator

@yshekel yshekel commented Nov 11, 2024

  • 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

@yshekel yshekel changed the title remove using namespace from header file to avoid name conflicts updates for metal backend Nov 11, 2024
@@ -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?
Copy link
Contributor

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

Copy link
Collaborator Author

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.


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}'"
Copy link
Contributor

@ShanieWinitz ShanieWinitz Nov 20, 2024

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@yshekel yshekel force-pushed the yshekel/metal_backend branch from d7babce to 4947c00 Compare November 20, 2024 17:54
@yshekel yshekel force-pushed the yshekel/metal_backend branch from 3661fef to 4d72054 Compare November 24, 2024 13:55
@yshekel yshekel force-pushed the yshekel/metal_backend branch from 4d72054 to b7c5c0c Compare November 24, 2024 14:06
@yshekel yshekel force-pushed the yshekel/metal_backend branch from e7e0052 to a0c3263 Compare November 24, 2024 14:51
@yshekel yshekel merged commit 0ca8db0 into main Nov 24, 2024
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants