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

Benchmarks & MacOS #63

Open
TeachRaccooon opened this issue Apr 1, 2024 · 0 comments
Open

Benchmarks & MacOS #63

TeachRaccooon opened this issue Apr 1, 2024 · 0 comments

Comments

@TeachRaccooon
Copy link
Contributor

TeachRaccooon commented Apr 1, 2024

benchmarks on macOS
Several benchmarks have a pragma like #if !defined(__APPLE__) inside main which determines whether or not the executable does something nontrivial. This difference in behavior across platforms should be easier to identify at a glance. TODO: use a pattern like the following:

#ifdef(__APPLE__)
#include <iostream>
int main(int argc, char **argc) {
    std::cout << "This benchmark cannot run on Apple machines." << std::endl;
    return 1;
}
#else
// all of your actual code ....
#endif
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

No branches or pull requests

1 participant