Skip to content

Commit

Permalink
Undo accidental debug changes
Browse files Browse the repository at this point in the history
  • Loading branch information
tom91136 committed Jul 29, 2021
1 parent 1af5b39 commit 23ba4d4
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 15 deletions.
2 changes: 1 addition & 1 deletion cuda/bude.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ int main(int argc, char *argv[])
// printf ("Maxdiff: %.2f (%.3f vs %.3f)\n", maxdiff, resultsRef[i], resultsCUDA[i]);
}

if (i < 1024)
if (i < 8)
printf("%7.2f vs %7.2f (%5.2f%%)\n", resultsRef[i], resultsCUDA[i], 100*diff);
}
printf("\nLargest difference was %.3f%%\n\n", maxdiff*100);
Expand Down
12 changes: 0 additions & 12 deletions cuda/bude_cuda.cu
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,6 @@ void runCUDA(float* results)
cudaDeviceSynchronize();

double start = getTimestamp();
printf("<<%d,%d>> -> %d\n",global, local,params.nposes);


for(int ii = 0; ii < params.iterations; ++ii)
{
Expand Down Expand Up @@ -135,12 +133,10 @@ __device__ void compute_transformation_matrix(const float transform_0,
transform[0].y = sx*sy*cz - cx*sz;
transform[0].z = cx*sy*cz + sx*sz;
transform[0].w = transform_3;

transform[1].x = cy*sz;
transform[1].y = sx*sy*sz + cx*cz;
transform[1].z = cx*sy*sz - sx*cz;
transform[1].w = transform_4;

transform[2].x = -sy;
transform[2].y = sx*cy;
transform[2].z = cx*cy;
Expand Down Expand Up @@ -195,18 +191,12 @@ __global__ void fasten_main(const int natlig,
transforms_5[index],
transform[i]);
etot[i] = ZERO;
// etotals[ix] = transform[i][0].x;
}

#ifdef USE_SHARED
__syncthreads();
#endif

// etotals[ix] = ix ;// transform[3][1].y; // (transforms_0[ix + 1 * lsz]) ;// transform[0][0].x ;// transform[0][0].x;
// etot[1] = transforms_1[0] ;// transform[0][0].y;
// etot[2] = transforms_2[0] ;// transform[0][0].z;
// etot[3] = transforms_3[0] ;// transform[0][0].w;

// Loop over ligand atoms
int il = 0;
do
Expand All @@ -231,7 +221,6 @@ __global__ void fasten_main(const int natlig,
linitpos.y*transform[i][2].y + linitpos.z*transform[i][2].z;
}


// Loop over protein atoms
int ip = 0;
do
Expand Down Expand Up @@ -301,7 +290,6 @@ __global__ void fasten_main(const int natlig,
etotals[td_base+i*blockDim.x] = etot[i]*HALF;
}
}
// etotals[ix] = transform[0][0].x;
} //end of fasten_main


Expand Down
2 changes: 1 addition & 1 deletion kokkos/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 3.12 FATAL_ERROR)

project(bude_kokkos)
set(CMAKE_VERBOSE_MAKEFILE ON)
set(CMAKE_VERBOSE_MAKEFILE OFF)

set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_EXTENSIONS OFF)
Expand Down
2 changes: 1 addition & 1 deletion kokkos/src/bude.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#endif

#ifndef WG_SIZE
#define WG_SIZE 256
#define WG_SIZE 128
#endif

#define DEFAULT_ITERS 8
Expand Down

0 comments on commit 23ba4d4

Please sign in to comment.