Skip to content

Commit

Permalink
fix: uninitialized f0
Browse files Browse the repository at this point in the history
  • Loading branch information
lucifer1004 committed Apr 12, 2024
1 parent 9d9308f commit 80a1860
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions unidock/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@ if(NOT DEFINED CMAKE_CUDA_ARCHITECTURES)
# https://en.wikipedia.org/wiki/CUDA#GPUs_supported
set(CMAKE_CUDA_ARCHITECTURES
70 # V100
# 75 # RTX 20, T4
75 # RTX 20, T4
80 # A100, A800
# 86 # RTX 30 89 # RTX 40, L40
86 # RTX 30
89 # RTX 40, L40
90 # H100
)
endif()
Expand Down Expand Up @@ -191,4 +192,4 @@ add_custom_target(
COMMENT "Running clang-format"
VERBATIM)

# >>>>>> Clang Format End
# >>>>>> Clang Format End
4 changes: 2 additions & 2 deletions unidock/src/cuda/warp_ops.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -989,7 +989,7 @@ __device__ void bfgs_warp(cg::thread_block_tile<TileSize> &tile, output_type_cud
// Profiling: perform timing within kernel
int n = 3 + 3 + x->lig_torsion_size; /* the dimensions of matirx */

float f0, f1, f_orig, alpha;
float f0 = 0.0f, f1, f_orig, alpha;

matrix_d_init_warp(tile, h, n, 0);
matrix_d_set_diagonal_warp(tile, h, 1);
Expand Down Expand Up @@ -1059,7 +1059,7 @@ __device__ void bfgs_warp(cg::thread_block_tile<TileSize> &tile, output_type_cud
// Profiling: perform timing within kernel
int n = 3 + 3 + x->lig_torsion_size; /* the dimensions of matirx */

float f0, f1, f_orig, alpha;
float f0 = 0.0f, f1, f_orig, alpha;

matrix_d_init_warp<TileSize,Config>(tile, h, n, 0);
matrix_d_set_diagonal_warp<TileSize,Config>(tile, h, 1);
Expand Down

0 comments on commit 80a1860

Please sign in to comment.