Skip to content

Commit

Permalink
Use /usr/bin/env bash in nvcc_wrapper and kokkos_launch_compiler for …
Browse files Browse the repository at this point in the history
…portability
  • Loading branch information
msimberg committed Aug 11, 2023
1 parent c62a42e commit 79348d5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion bin/kokkos_launch_compiler
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash -e
#!/usr/bin/env bash
#
# This script allows CMAKE_CXX_COMPILER to be a standard
# C++ compiler and Kokkos sets RULE_LAUNCH_COMPILE and
Expand All @@ -13,6 +13,8 @@
# $1 are 'ar', 'cmake', etc. during the linking phase
#

set -e

# emit a message about the underlying command executed
: ${DEBUG:=0}
: ${KOKKOS_DEBUG_LAUNCH_COMPILER:=${DEBUG}}
Expand Down
2 changes: 1 addition & 1 deletion bin/nvcc_wrapper
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# This shell script (nvcc_wrapper) wraps both the host compiler and
# NVCC, if you are building legacy C or C++ code with CUDA enabled.
Expand Down

0 comments on commit 79348d5

Please sign in to comment.