summaryrefslogtreecommitdiff
path: root/libcuda/cuda_runtime_api.cc
diff options
context:
space:
mode:
authorJonathan <[email protected]>2018-05-22 09:49:26 -0700
committerJonathan <[email protected]>2018-05-22 09:49:26 -0700
commit7c57ad4c1186d28ccc7fb7ea45f66007f2903bf2 (patch)
treeeb0731f18f3eae42509fee43ffb2a269865a67e7 /libcuda/cuda_runtime_api.cc
parentf754ad8e135befe98998193121fff6cb4c22fe25 (diff)
revert to before texture bug
Diffstat (limited to 'libcuda/cuda_runtime_api.cc')
-rw-r--r--libcuda/cuda_runtime_api.cc11
1 files changed, 0 insertions, 11 deletions
diff --git a/libcuda/cuda_runtime_api.cc b/libcuda/cuda_runtime_api.cc
index 292d43d..ef46f00 100644
--- a/libcuda/cuda_runtime_api.cc
+++ b/libcuda/cuda_runtime_api.cc
@@ -1002,14 +1002,6 @@ __host__ cudaError_t CUDARTAPI cudaBindTextureToArray(const struct textureRefere
__host__ cudaError_t CUDARTAPI cudaUnbindTexture(const struct textureReference *texref)
{
- CUctx_st *context = GPGPUSim_Context();
- gpgpu_t *gpu = context->get_device()->get_gpgpu();
- printf("GPGPU-Sim PTX: in cudaUnbindTexture: sizeof(struct textureReference) = %zu\n", sizeof(struct textureReference));
- printf("GPGPU-Sim PTX: Name corresponding to textureReference: %s\n", gpu->gpgpu_ptx_sim_findNamefromTexture(texref));
- const struct cudaArray* array = gpu->get_texarray(texref);
- printf("GPGPU-Sim PTX: texref = %p, array = %p\n", texref, array);
-
- gpu->gpgpu_ptx_sim_unbindTexture(texref);
return g_last_cudaError = cudaSuccess;
}
@@ -2092,12 +2084,10 @@ void __cudaUnregisterFatBinary(void **fatCubinHandle)
cudaError_t cudaDeviceReset ( void ) {
// Should reset the simulated GPU
- // TODO: Implement
return g_last_cudaError = cudaSuccess;
}
cudaError_t CUDARTAPI cudaDeviceSynchronize(void){
// I don't know what this should do
- // TODO: Implement
return g_last_cudaError = cudaSuccess;
}
@@ -2199,7 +2189,6 @@ typedef unsigned long GLuint;
cudaError_t cudaGLRegisterBufferObject(GLuint bufferObj)
{
printf("GPGPU-Sim PTX: Execution warning: ignoring call to \"%s\"\n", __my_func__ );
- // TODO: Implement
return g_last_cudaError = cudaSuccess;
}