SHOGUN  v3.2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
SerialComputationEngine.cpp
Go to the documentation of this file.
00001 /*
00002  * This program is free software; you can redistribute it and/or modify
00003  * it under the terms of the GNU General Public License as published by
00004  * the Free Software Foundation; either version 3 of the License, or
00005  * (at your option) any later version.
00006  *
00007  * Written (W) 2013 Soumyajit De
00008  */
00009 
00010 #include <shogun/lib/common.h>
00011 #include <shogun/lib/computation/job/IndependentJob.h>
00012 #include <shogun/lib/computation/engine/SerialComputationEngine.h>
00013 
00014 namespace shogun
00015 {
00016 
00017 CSerialComputationEngine::CSerialComputationEngine()
00018     : CIndependentComputationEngine()
00019 {
00020     SG_GCDEBUG("%s created (%p)\n", this->get_name(), this)
00021 }
00022 
00023 CSerialComputationEngine::~CSerialComputationEngine()
00024 {
00025     SG_GCDEBUG("%s destroyed (%p)\n", this->get_name(), this)
00026 }
00027 
00028 void CSerialComputationEngine::submit_job(CIndependentJob* job)
00029 {
00030     SG_DEBUG("Entering. The job is being computed!\n");
00031 
00032     REQUIRE(job, "Job to be computed is NULL\n");
00033     job->compute();
00034 
00035     SG_DEBUG("The job is computed. Leaving!\n");
00036 }
00037 
00038 void CSerialComputationEngine::wait_for_all()
00039 {
00040     SG_DEBUG("All jobs are computed!\n");
00041 }
00042 
00043 }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

SHOGUN Machine Learning Toolbox - Documentation