From 80a186048bcf721931cd84b70530334620d74347 Mon Sep 17 00:00:00 2001 From: Zihua Wu Date: Fri, 12 Apr 2024 01:01:11 +0000 Subject: [PATCH] fix: uninitialized f0 --- unidock/CMakeLists.txt | 7 ++++--- unidock/src/cuda/warp_ops.cuh | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/unidock/CMakeLists.txt b/unidock/CMakeLists.txt index e04b2401..c133487b 100644 --- a/unidock/CMakeLists.txt +++ b/unidock/CMakeLists.txt @@ -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() @@ -191,4 +192,4 @@ add_custom_target( COMMENT "Running clang-format" VERBATIM) -# >>>>>> Clang Format End \ No newline at end of file +# >>>>>> Clang Format End diff --git a/unidock/src/cuda/warp_ops.cuh b/unidock/src/cuda/warp_ops.cuh index e245766e..204db663 100644 --- a/unidock/src/cuda/warp_ops.cuh +++ b/unidock/src/cuda/warp_ops.cuh @@ -989,7 +989,7 @@ __device__ void bfgs_warp(cg::thread_block_tile &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); @@ -1059,7 +1059,7 @@ __device__ void bfgs_warp(cg::thread_block_tile &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);