Skip to content

Conversation

@danieldk
Copy link
Member

No description provided.

@danieldk danieldk marked this pull request as draft October 30, 2025 11:59
@danieldk danieldk marked this pull request as ready for review October 30, 2025 14:50
Copy link
Collaborator

@MekkCyber MekkCyber left a comment

Choose a reason for hiding this comment

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

veryy niiice!

Comment on lines +14 to +20
foreach(_KERNEL_SRC {{'${' + kernel_name + '_SRC}'}})
set_property(
SOURCE ${_KERNEL_SRC}
APPEND PROPERTY
COMPILE_OPTIONS "$<$<COMPILE_LANGUAGE:CXX>:{{ cxx_flags }}>"
)
endforeach()
Copy link
Collaborator

Choose a reason for hiding this comment

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

why do we set the flags for each source file separately ?

Copy link
Member Author

Choose a reason for hiding this comment

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

IIRC we have to set it on the whole target otherwise, which would result in applying the flags for other kernels as well.

Comment on lines 133 to 134
pkgsForCpu = pkgsForMetal;

Copy link
Collaborator

Choose a reason for hiding this comment

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

Just to confirm, is this intended ?

Comment on lines 67 to +69

metalSupport = buildConfig.metal or false;

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think it's better to not default to metalSupport if no backend is available and do that for cpu only

Copy link
Collaborator

@MekkCyber MekkCyber left a comment

Choose a reason for hiding this comment

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

Let's gooo

@danieldk danieldk merged commit 13998b0 into main Oct 31, 2025
28 checks passed
@danieldk danieldk deleted the cpu-backend branch October 31, 2025 10:18
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