diff --git a/src/compiler/main.cpp b/src/compiler/main.cpp
index 4131fec..5a4fe02 100644
--- a/src/compiler/main.cpp
+++ b/src/compiler/main.cpp
@@ -29,6 +29,7 @@ struct Options {
bool help;
bool dump_dot;
unsigned profile;
+ bool check;
bool verbose_tree;
bool verbose_mod;
bool futhark_verbose;
@@ -44,6 +45,16 @@ struct Options {
};
void print_usage(char* progname) {
+ #if defined(FUTHARK_BACKEND_c)
+ const char* backend = "c";
+ #elif defined(FUTHARK_BACKEND_cuda)
+ const char* backend = "CUDA";
+ #elif defined(FUTHARK_BACKEND_opencl)
+ const char* backend = "OpenCL";
+ #elif defined(FUTHARK_BACKEND_multicore)
+ const char* backend = "multicore";
+ #endif
+
fmt::print(
"Usage: {} [options...] \n"
"Available options:\n"
@@ -51,6 +62,8 @@ void print_usage(char* progname) {
"-h --help Show this message and exit.\n"
"--dump-dot Dump tree as dot graph.\n"
"-p --profile Record (non-futhark) profiling information.\n"
+ "--check Only run check the program for validity; do not\n"
+ " attempt to generate code.\n"
"--verbose-tree Dump some information about the tree to stderr.\n"
" (default: 0, =disabled)\n"
"--verbose-mod Dump some information about the final module to\n"
@@ -69,12 +82,15 @@ void print_usage(char* progname) {
" device which name contains may be used. The\n"
" special value #k may be used to select the k-th\n"
" device reported by the platform.\n"
+ " This value may also be set via the PAREAS_DEVICE\n"
+ " environment variable.\n"
"--futhark-profile Enable Futhark profiling and print report at exit.\n"
#endif
"\n"
"When and/or