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

Add word size to help screen #2354

Merged
merged 5 commits into from
Nov 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/include/souffle/CompiledOptions.h
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,11 @@ class CmdOptions {
#endif
std::cerr << " -h -- prints this help page.\n";
std::cerr << "--------------------------------------------------------------------\n";
#ifdef SOUFFLE_GENERATOR_VERSION
std::cerr << " Version: " << SOUFFLE_GENERATOR_VERSION << std::endl;
#endif
std::cerr << " Word size: " << RAM_DOMAIN_SIZE << " bits" << std::endl;
std::cerr << "--------------------------------------------------------------------\n";
std::cerr << " Copyright (c) 2016-22 The Souffle Developers." << std::endl;
std::cerr << " Copyright (c) 2013-16 Oracle and/or its affiliates." << std::endl;
std::cerr << " All rights reserved.\n";
Expand Down
5 changes: 5 additions & 0 deletions src/synthesiser/Synthesiser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include "GenDb.h"
#include "Global.h"
#include "RelationTag.h"
#include "config.h"
#include "ram/AbstractParallel.h"
#include "ram/Aggregate.h"
#include "ram/Aggregator.h"
Expand Down Expand Up @@ -2485,6 +2486,10 @@ void Synthesiser::generateCode(GenDb& db, const std::string& id, bool& withShare
std::string classname = "Sf_" + id;

// generate C++ program
std::string package_gen_version = "SOUFFLE_GENERATOR_VERSION \"";
package_gen_version += PACKAGE_VERSION;
package_gen_version += "\"";
db.addGlobalDefine(package_gen_version);

if (Global::config().has("verbose")) {
db.addGlobalDefine("_SOUFFLE_STATS");
Expand Down