Back to home page

EIC code displayed by LXR

 
 

    


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

0001 #pragma once
0002 
0003 #if defined(__CUDACC__) || defined(__CUDABE__)
0004    #define QBASE_METHOD __device__
0005 #else
0006    #define QBASE_METHOD
0007 #endif
0008 
0009 #if defined(__CUDACC__) || defined(__CUDABE__)
0010 #else
0011 #include <sstream>
0012 #include <string>
0013 #endif
0014 
0015 
0016 struct qbase
0017 {
0018     unsigned long long pidx ;
0019 #if defined(__CUDACC__) || defined(__CUDABE__)
0020 #else
0021     QBASE_METHOD std::string desc() const ;
0022 #endif
0023 };
0024 
0025 
0026 #if defined(__CUDACC__) || defined(__CUDABE__)
0027 #else
0028 inline QBASE_METHOD std::string qbase::desc() const
0029 {
0030     std::stringstream ss ;
0031     ss << "qbase::desc"
0032        << " pidx " << pidx
0033        ;
0034     std::string s = ss.str();
0035     return s ;
0036 }
0037 #endif
0038 
0039 
0040 
0041