You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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>intmain(int argc, char **argc) {
std::cout << "This benchmark cannot run on Apple machines." << std::endl;
return1;
}
#else// all of your actual code ....
#endif
The text was updated successfully, but these errors were encountered:
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:The text was updated successfully, but these errors were encountered: