Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] Annotation of /branches/cuda/src/lib/include/diderot/base.cuh
ViewVC logotype

Annotation of /branches/cuda/src/lib/include/diderot/base.cuh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5628 - (view) (download)

1 : jhr 5597 //
2 :     // Created by Adrian Lehmann on 26/10/20.
3 :     //
4 : adrianlehm 5628 #ifndef MIP_CUDA_BASE_CUH
5 :     #define MIP_CUDA_BASE_CUH
6 : adrianlehm 5626
7 :     #ifndef __CUDACC__
8 :     #error "Can't compile CUDA headers without nvcc"
9 :     #endif
10 :    
11 : jhr 5597 #include "base.h"
12 : adrianlehm 5619
13 :     #ifndef _DIDEROT_CUDA_
14 :     #define _DIDEROT_CUDA_
15 :     #endif
16 : jhr 5597 using namespace diderot;
17 :     HD
18 :     inline bool activeSts(strand_status sts) { return (sts <= kNew); }
19 :     HD
20 :     inline bool notActiveSts(strand_status sts) { return (sts > kNew); }
21 :     HD
22 :     inline bool aliveSts(strand_status sts) { return (sts < kDie); }
23 :     HD
24 :     inline bool notAliveSts(strand_status sts) { return (sts >= kDie); }
25 :    
26 :     #endif //MIP_CUDA_BASE_CUH

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0