diff options
| author | Mengchi Zhang <[email protected]> | 2019-07-09 15:03:18 -0400 |
|---|---|---|
| committer | Mengchi Zhang <[email protected]> | 2019-07-09 15:03:18 -0400 |
| commit | b3655bf28a7402db347f9d7f87049806b9315a05 (patch) | |
| tree | 4456b9c5b882fd0068b0336f98c05d8064696c7d /libcuda | |
| parent | cda7a145b9e28eff0f3e9ac8197c2b6215755fc8 (diff) | |
Move g_global_name_lookup and g_constant_name_lookup
Signed-off-by: Mengchi Zhang <[email protected]>
Diffstat (limited to 'libcuda')
| -rw-r--r-- | libcuda/cuda_runtime_api.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libcuda/cuda_runtime_api.cc b/libcuda/cuda_runtime_api.cc index 43c8bae..bbbaf23 100644 --- a/libcuda/cuda_runtime_api.cc +++ b/libcuda/cuda_runtime_api.cc @@ -767,9 +767,9 @@ void cudaRegisterVarInternal( ctx->cuobjdumpParseBinary((unsigned)(unsigned long long)fatCubinHandle); fflush(stdout); if ( constant && !global && !ext ) { - gpgpu_ptx_sim_register_const_variable(hostVar,deviceName,size); + ctx->func_sim->gpgpu_ptx_sim_register_const_variable(hostVar,deviceName,size); } else if ( !constant && !global && !ext ) { - gpgpu_ptx_sim_register_global_variable(hostVar,deviceName,size); + ctx->func_sim->gpgpu_ptx_sim_register_global_variable(hostVar,deviceName,size); } else cuda_not_implemented(__my_func__,__LINE__); } |
