Skip to content

Commit

Permalink
Read sf from env
Browse files Browse the repository at this point in the history
  • Loading branch information
JayjeetAtGithub committed Aug 10, 2024
1 parent 0e0346c commit e8f1d32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpp/examples/tpch/utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -508,8 +508,8 @@ tpch_example_args parse_args(int argc, char const** argv)
*/
cudf::size_type get_sf()
{
char* val = getenv("CUDF_TPCH_SF");
cudf::size_type sf == NULL ? 1 : atoi(val);
char* val = getenv("CUDF_TPCH_SF");
cudf::size_type sf = (val == NULL) ? 1 : atoi(val);
std::cout << "Using scale factor: " << sf << std::endl;
return sf;
}

0 comments on commit e8f1d32

Please sign in to comment.