Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-04-09 07:49:06

0001 /**
0002 QSim_Lifecycle_Test.cc
0003 ========================
0004 
0005 **/
0006 
0007 #include <sstream>
0008 
0009 #include <cuda_runtime.h>
0010 #include "OPTICKS_LOG.hh"
0011 
0012 #include "SEventConfig.hh"
0013 #include "scuda.h"
0014 #include "squad.h"
0015 #include "ssys.h"
0016 #include "spath.h"   
0017 #include "sstate.h"
0018 
0019 #include "SSim.hh"
0020 #include "SBnd.h"
0021 #include "SPrd.h"
0022 
0023 #include "SEvt.hh"
0024 #include "NP.hh"
0025 
0026 #include "QSim.hh"
0027 
0028 
0029 int main(int argc, char** argv)
0030 {
0031     SSim* sim = SSim::Load(); 
0032     QSim::UploadComponents(sim);   // instanciates things like QBnd : NORMALLY FIRST GPU ACCESS 
0033     const SPrd* prd = sim->get_sprd() ; 
0034 
0035     LOG_IF(error, prd->rc != 0 )
0036         << " SPrd::rc NON-ZERO " << prd->rc 
0037         << " NOT ALL CONFIGURED BOUNDARIES ARE IN THE GEOMETRY "
0038         ;
0039     if(prd->rc != 0 ) return 1 ; 
0040 
0041 
0042     SEvt::Create(SEvt::EGPU) ; 
0043 
0044     return 0 ; 
0045 }
0046 
0047 
0048