diff options
Diffstat (limited to 'libcuda')
| -rw-r--r-- | libcuda/cuda_runtime_api.cc | 2 | ||||
| -rw-r--r-- | libcuda/gpgpu_context.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/libcuda/cuda_runtime_api.cc b/libcuda/cuda_runtime_api.cc index 2e2b50b..c5ebc20 100644 --- a/libcuda/cuda_runtime_api.cc +++ b/libcuda/cuda_runtime_api.cc @@ -273,7 +273,7 @@ static CUctx_st* GPGPUSim_Context() return the_context; } -static gpgpu_context* GPGPU_Context() +gpgpu_context* GPGPU_Context() { static gpgpu_context *gpgpu_ctx = NULL; if( gpgpu_ctx == NULL ) { diff --git a/libcuda/gpgpu_context.h b/libcuda/gpgpu_context.h index 4622f00..6c8a293 100644 --- a/libcuda/gpgpu_context.h +++ b/libcuda/gpgpu_context.h @@ -12,4 +12,6 @@ class gpgpu_context { cuda_runtime_api* api; // member function list }; +gpgpu_context* GPGPU_Context(); + #endif /* __gpgpu_context_h__ */ |
