Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 9bae8277 authored by hhakim's avatar hhakim
Browse files

Get use_csr option from environment in hierarchical2020Hadamard_gpu2.cpp.in.

parent 1ac99d1e
Branches
Tags
No related merge requests found
......@@ -107,6 +107,7 @@ int main(int argc, char* argv[])
}
Real<FPP> lambda;
bool isUpdateWayR2L = true, isFactSideLeft = false, use_csr = true, packing_RL = false;
char* str_use_csr = getenv("USE_CSR");
char* str_norm2_threshold = getenv("NORM2_THRESHOLD");
char* str_norm2_max_iter = getenv("NORM2_MAX_ITER");
char* str_packing_RL = getenv("PACKING_RL");
......@@ -118,6 +119,8 @@ int main(int argc, char* argv[])
norm2_max_iter = std::atoi(str_norm2_max_iter);
if(str_packing_RL)
packing_RL = std::atoi(str_packing_RL) != 0;
if(str_use_csr)
use_csr = std::atoi(str_use_csr) != 0;
cout << "norm2_threshold: "<< norm2_threshold << endl;
cout << "norm2_max_iter:" << norm2_max_iter << endl;
vector<StoppingCriterion<Real<FPP>>> sc = {30,30};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment