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

AMX extension #68

Closed
wants to merge 30 commits into from
Closed

AMX extension #68

wants to merge 30 commits into from

Conversation

cyssi-cb
Copy link
Collaborator

No description provided.

CMakeLists.txt Outdated
@@ -39,7 +39,7 @@ git_submodule_update()

if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
else()
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -O2 -fdata-sections -ffunction-sections")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mamx-int8 -mamx-tile -Wall -Wextra -O2 -fdata-sections -ffunction-sections")
Copy link
Member

Choose a reason for hiding this comment

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

Are these necessary?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

-mamx-tile is necessary.
-mamx-int8 got removed.

class AVX512_AMX_Payload final : public X86Payload {
public:
AVX512_AMX_Payload(asmjit::CpuFeatures const &supportedFeatures)
: X86Payload(supportedFeatures, {asmjit::CpuFeatures::X86::kAMX_BF16},
Copy link
Member

Choose a reason for hiding this comment

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

Checking for the kAMX_BF16 feature may have prevented you from integrating the AMX code it into the AVX512 payload. Can we check this feature if the "AMX" meta-instruction is selection during the compilePayload step instead?

SapphireRapidsConfig(asmjit::CpuFeatures const &supportedFeatures,
unsigned family, unsigned model, unsigned threads)
: X86PlatformConfig("SKL_XEONEP", 6, {85}, {1, 2}, 0,
{32768, 1048576, 1441792}, 1048576000, 1536, family,
Copy link
Member

Choose a reason for hiding this comment

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

I assume these values also have not been updated

@cyssi-cb cyssi-cb requested a review from marenz2569 November 18, 2024 14:08
@marenz2569
Copy link
Member

This PR has been closed in favour of #93

@marenz2569 marenz2569 closed this Nov 27, 2024
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.

2 participants