Commit 506b8bea authored by Alvarez, Gonzalo's avatar Alvarez, Gonzalo
Browse files

drivers compile

parent 5718e6da
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -81,7 +81,7 @@ int main(int argc,char *argv[])
	HelperType helper(ntasks, nthreads);

	std::cout<<"Using "<<threadObject.name();
	std::cout<<" with "<<threadObject.threads()<<" threads.\n";
	std::cout<<" with "<<nthreads<<" threads.\n";
	threadObject.loopCreate(helper);
	helper.sync();
	std::cout<<"Sum of all tasks= "<<helper.result()<<"\n";
+1 −1
Original line number Diff line number Diff line
@@ -92,7 +92,7 @@ int main(int argc,char *argv[])
	HelperType helper(ntasks, nthreads);

	std::cout<<"Using "<<threadObject.name();
	std::cout<<" with "<<threadObject.threads()<<" threads.\n";
	std::cout<<" with "<<nthreads<<" threads.\n";
	threadObject.loopCreate(helper, helper.weights());
	helper.sync();
	std::cout<<"Sum of all tasks= "<<helper.result()<<"\n";
+1 −1
Original line number Diff line number Diff line
@@ -132,7 +132,7 @@ int main(int argc,char *argv[])
	HelperType helper(ntasks, nthreadsOuter, ntasksInner, nthreadsInner);

	std::cout<<"Using "<<threadObject.name();
	std::cout<<" with "<<threadObject.threads()<<" threads.\n";
	std::cout<<" with "<<nthreadsOuter<<" threads.\n";
	threadObject.loopCreate(helper);
	helper.sync();
	std::cout<<"Sum of all tasks= "<<helper.result()<<"\n";
+1 −1
Original line number Diff line number Diff line
@@ -110,7 +110,7 @@ int main(int argc,char *argv[])

	if (ConcurrencyType::root()) {
		std::cout<<"Using "<<threadObject.name()<<" mode= "<<ConcurrencyType::mode;
		std::cout<<" with "<<threadObject.threads();
		std::cout<<" with "<<nthreads;
		std::cout<<" threads or mpi procs.\n";
		std::cout<<"sum="<<sum<<"\n";
		std::cout<<helper.v();
+1 −1
Original line number Diff line number Diff line
@@ -79,7 +79,7 @@ int main(int argc,char *argv[])
	HelperType helper(ntasks, nthreads);

	std::cout<<"Using "<<threadObject.name();
	std::cout<<" with "<<threadObject.threads()<<" threads.\n";
	std::cout<<" with "<<nthreads<<" threads.\n";
	threadObject.loopCreate(helper);
	helper.sync();
	std::cout<<"Sum of all tasks= "<<helper.result()<<"\n";