Skip to content

Commit

Permalink
Fix the GPU shared memory check.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaycedowell committed Jul 17, 2024
1 parent 14f1220 commit d8288d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config/cuda.m4
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ AC_DEFUN([AX_CHECK_CUDA],
[default GPU shared memory per block in bytes (default=detect)])],
[],
[with_shared_mem='auto'])
if test "$with_gpu_archs" = "auto"; then
if test "$with_shared_mem" = "auto"; then
AC_MSG_CHECKING([for minimum shared memory per block])
CXXFLAGS_save="$CXXFLAGS"
Expand Down
3 changes: 1 addition & 2 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -21429,7 +21429,6 @@ fi
fi

if test "$HAVE_CUDA" = "1"; then

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working CUDA 10+ installation" >&5
printf %s "checking for a working CUDA 10+ installation... " >&6; }

Expand Down Expand Up @@ -21716,7 +21715,7 @@ else $as_nop
with_shared_mem='auto'
fi

if test "$with_gpu_archs" = "auto"; then
if test "$with_shared_mem" = "auto"; then
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for minimum shared memory per block" >&5
printf %s "checking for minimum shared memory per block... " >&6; }

Expand Down

0 comments on commit d8288d2

Please sign in to comment.