Interface MCAlite - #24
Draft
MinliLiao wants to merge 10 commits into
Draft
Conversation
…ld RAPTOR with mcalite
…nts the same as the original operation
… to original in runtime
… set to anything but empty
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.
This pull request adds the interface to use MCAlite as the backend for MCA.
To build RAPTOR with MCAlite support, add
-D__RAPTOR_MCALITE_SOURCE_DIR=path/to/MCAlite/srcto the cmake command when building RAPTOR.MCAlite requires linkage to the math library, so
-lmlinkage option would need to be added when compiling application code with RAPTOR with MCAlite support.Set the second parameter of
__raptor_mca_op_functo1to use MCAlite. MCAlite does not use any of the last 3 truncate to parameters, so any valid value can be used, but they won't have any impact on the results.The environment variables
MCA_SEED,MCA_T,MCA_NTRIALS,MCA_MODEwould set the random number generator seedrng_seed, virtual precisiont, loop count of each operationntrialsand mca mode (RR, PB or FULL)moderespectively at runtime.The default values are equivalent to
MCA_SEED=42 MCA_T=24 MCA_NTRIALS=5 MCA_MODE=PB.The statistics are calculated with
mca_compute_statsfunction for each operation and aggregated and printed to stdout at the end of execution. Per operation statistic output can be silenced by settingMCA_QUIETenvironment variable to anything but empty.No statistics are calculated when
ntrialsis1since themca_compute_statsfunction would through errors.