summaryrefslogtreecommitdiff
path: root/debug_tools/WatchYourStep/ptxjitplus/ptxjitplus.cpp
diff options
context:
space:
mode:
authorJonathan <[email protected]>2018-08-10 16:27:26 -0700
committerJonathan <[email protected]>2018-08-10 16:27:26 -0700
commit1a3de9dba3ddf4adab4256fadf5e815b410862ae (patch)
tree44e0b33c429bd6eccdd15f0d720bf59f739dd733 /debug_tools/WatchYourStep/ptxjitplus/ptxjitplus.cpp
parentbc89f8c7ebc77db6a28f5600d17c120fe693e988 (diff)
fixes ptxjitplus and cuLaunchKernel
Diffstat (limited to 'debug_tools/WatchYourStep/ptxjitplus/ptxjitplus.cpp')
-rw-r--r--debug_tools/WatchYourStep/ptxjitplus/ptxjitplus.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/debug_tools/WatchYourStep/ptxjitplus/ptxjitplus.cpp b/debug_tools/WatchYourStep/ptxjitplus/ptxjitplus.cpp
index 1065870..554e831 100644
--- a/debug_tools/WatchYourStep/ptxjitplus/ptxjitplus.cpp
+++ b/debug_tools/WatchYourStep/ptxjitplus/ptxjitplus.cpp
@@ -61,7 +61,6 @@ const char *sSDKname = "PTX Just In Time (JIT) Compilation Plus";
char *wys_exec_path;
char *wys_exec_name;
char *wys_launch_num;
-bool gpgpusim = false;
dim3 gridDim, blockDim;
std::string kernelName;
@@ -138,10 +137,6 @@ void ptxJIT(int argc, char **argv, CUmodule *phModule, CUfunction *phKernel, CUl
void initializeData(std::vector<param>& v_params)
{
- char *gpgpusim_env = getenv("GPGPUSIM_SETUP_ENVIRONMENT_WAS_RUN");
- if (gpgpusim_env!=NULL&&gpgpusim_env[0] == '1'){
- gpgpusim=true;
- }
wys_exec_path = getenv("WYS_EXEC_PATH");
assert(wys_exec_path!=NULL);
wys_exec_name = getenv("WYS_EXEC_NAME");
@@ -272,23 +267,16 @@ int main(int argc, char **argv)
unsigned char **d_data = (unsigned char **) malloc(sizeof(unsigned char **));
checkCudaErrors(cudaMalloc((void**)d_data, p->size));
checkCudaErrors(cudaMemcpy((void*)*d_data,(void*)p->data,p->size,cudaMemcpyHostToDevice));
- if (gpgpusim){
- checkCudaErrors(cuParamSetv(hKernel, p->offset, d_data, sizeof(*d_data)));
- }
paramKernels[index] = (void*)d_data;
m_device_data[index]=*d_data;
m_cleanup[index]=d_data;
paramOffset = p->offset + 8;
}else{
- if (gpgpusim){
- checkCudaErrors(cuParamSetv(hKernel, p->offset, p->data, p->size));
- }
paramKernels[index] = (void*)p->data;
paramOffset = p->offset + p->size;
}
index ++;
}
- checkCudaErrors(cuParamSetSize(hKernel, paramOffset));
// Launch the kernel (Driver API_)
CUDAAPI cuLaunchKernel(hKernel, gridDim.x, gridDim.y, gridDim.z, blockDim.x, blockDim.y, blockDim.z,