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

Hadar/base math #734

Merged
merged 8 commits into from
Jan 16, 2025
Merged

Hadar/base math #734

merged 8 commits into from
Jan 16, 2025

Conversation

HadarIngonyama
Copy link
Contributor

This PR separates cpu (host) math and gpu (device) math from the field class itself. Now the field calls the relevant base math according to the context.

CUDA backend branch

cuda-backend-branch: hadar/base-math

@@ -37,6 +39,12 @@

using namespace icicle;

#ifdef __CUDA_ARCH__
namespace base_math = device_math;
#else
Copy link
Contributor

Choose a reason for hiding this comment

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

We should be able to extend this to Metal and Vulkan as well

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, probably

Copy link
Collaborator

Choose a reason for hiding this comment

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

but metal and vulkan are separate shaders, not sharing this code

Copy link
Contributor

Choose a reason for hiding this comment

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

@yshekel I meant the namespace

Copy link
Collaborator

@yshekel yshekel left a comment

Choose a reason for hiding this comment

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

I assume no performance impact right?

@HadarIngonyama HadarIngonyama merged commit 2c45c32 into main Jan 16, 2025
15 checks passed
@HadarIngonyama HadarIngonyama deleted the hadar/base-math branch January 16, 2025 15:09
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.

3 participants