26 #define __CL_ENABLE_EXCEPTIONS
53 int nx_skip,
int ny_skip,
int neta_skip,
55 const std::string & compile_option): nx_(nx), ny_(ny), neta_(neta),
56 nx_skip_(nx_skip), ny_skip_(ny_skip), neta_skip_(neta_skip),
57 backend_(backend), compile_option_(compile_option){
89 }
catch (cl::Error &
err ){
90 std::cerr<<
"Error:"<<err.what()<<
"("<<err.err()<<
")\n";
91 std::cerr<<
"@" << __FILE__ <<
":line " << __LINE__ << std::endl;
126 std::ofstream
fout(fpath);
128 fout <<
"# nx=" <<
nx_out_ << std::endl;
129 fout <<
"# ny=" <<
ny_out_ << std::endl;
130 fout <<
"# nz=" <<
neta_out_ << std::endl;
131 fout <<
"# num_entries =" <<
data_info_.size() << std::endl;
140 if (idx % data_info_.size() == 0) {