Repository navigation
Build AccelWattch with the Makefile flow on non-x86 hosts - #153
Open
shatalov-alex wants to merge 1 commit into
Open
shatalov-alex wants to merge 1 commit into
shatalov-alex wants to merge 1 commit into
Conversation
src/accelwattch/mcpat.mk passed -m64 and -msse2 -mfpmath=sse unconditionally. aarch64 and ppc64le compilers reject all three, so 'make' failed in AccelWattch on those hosts. accel-sim#150 guarded the SSE flags in the CMake flow; this does the same for the Makefile flow and drops -m64/-m32 off x86. x86 builds get exactly the flags they had before.
This was referenced Nov 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
src/accelwattch/mcpat.mkpasses-m64and-msse2 -mfpmath=sseunconditionally. These are x86 options. aarch64 and ppc64le compilers reject them (g++: error: unrecognized command-line option '-m64'), somakefails in AccelWattch on those hosts. #150 guarded the SSE flags in the CMake flow; this does the same for the Makefile flow.The flags are now set only when
uname -mis an x86 architecture. On x86 the resultingCXX/CC/OPTare exactly as before: I checked this by evaluating the makefile withuname -mreportingx86_64, which givesg++ -m64and-O3 -fPIC -msse2 -mfpmath=sse .... On aarch64 they areg++and-O3 -fPIC ....Testing
makebuild on aarch64 (CUDA 12.6.3, gcc 13.2, Ubuntu 24.04):libcudart.solinks. Before this change it stopped at the first AccelWattch object.