Skip to content

Commit

Permalink
ocl: removed unused scripts and updated remaining license banners
Browse files Browse the repository at this point in the history
* Script to run FAILED cases denoted by the given logfile.
* Fixed remaining license banners (BSD-3-Clause).
* Removed outdated or unused scripts.
  • Loading branch information
hfp committed Jul 9, 2024
1 parent a2fea06 commit f231f4a
Show file tree
Hide file tree
Showing 9 changed files with 28 additions and 58 deletions.
2 changes: 1 addition & 1 deletion src/acc/acc.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/* */
/* For information on the license, see the LICENSE file. */
/* For further information please visit https://dbcsr.cp2k.org */
/* SPDX-License-Identifier: GPL-2.0+ */
/* SPDX-License-Identifier: BSD-3-Clause */
/*------------------------------------------------------------------------------------------------*/
#ifndef DBCSR_ACC_H
#define DBCSR_ACC_H
Expand Down
2 changes: 1 addition & 1 deletion src/acc/acc_bench.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/* */
/* For information on the license, see the LICENSE file. */
/* For further information please visit https://dbcsr.cp2k.org */
/* SPDX-License-Identifier: GPL-2.0+ */
/* SPDX-License-Identifier: BSD-3-Clause */
/*------------------------------------------------------------------------------------------------*/
#ifndef DBCSR_ACC_BENCH_H
#define DBCSR_ACC_BENCH_H
Expand Down
37 changes: 0 additions & 37 deletions src/acc/acc_bench_smm.sh

This file was deleted.

2 changes: 1 addition & 1 deletion src/acc/acc_triplets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# #
# For information on the license, see the LICENSE file. #
# For further information please visit https://dbcsr.cp2k.org #
# SPDX-License-Identifier: GPL-2.0+ #
# SPDX-License-Identifier: BSD-3-Clause #
####################################################################################################
XARGS=$(command -v xargs)
SORT=$(command -v sort)
Expand Down
2 changes: 1 addition & 1 deletion src/acc/opencl/acc_getenv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# #
# For information on the license, see the LICENSE file. #
# For further information please visit https://dbcsr.cp2k.org #
# SPDX-License-Identifier: GPL-2.0+ #
# SPDX-License-Identifier: BSD-3-Clause #
####################################################################################################

FIND=$(command -v find)
Expand Down
2 changes: 1 addition & 1 deletion src/acc/opencl/acc_opencl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# #
# For information on the license, see the LICENSE file. #
# For further information please visit https://dbcsr.cp2k.org #
# SPDX-License-Identifier: GPL-2.0+ #
# SPDX-License-Identifier: BSD-3-Clause #
####################################################################################################
# shellcheck disable=SC2048,SC2129

Expand Down
34 changes: 20 additions & 14 deletions src/acc/acc_makedep.sh → src/acc/opencl/acc_opencl_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,28 @@
# #
# For information on the license, see the LICENSE file. #
# For further information please visit https://dbcsr.cp2k.org #
# SPDX-License-Identifier: GPL-2.0+ #
# SPDX-License-Identifier: BSD-3-Clause #
####################################################################################################

FILE=$1
VAL=$2
HERE="$(cd "$(dirname "$0")" && pwd -P)"
TEST=acc_bench_smm
EXE=${HERE}/../${TEST}

if [ "${FILE}" ]; then
if [ ! -e "${FILE}" ] || [ "$(cat "${FILE}")" != "${VAL}" ]; then
echo "${VAL}" >"${FILE}"
fi
echo "${FILE}"
else
echo "Usage: $0 filename [value]"
echo " The content of the file will be updated with the value"
echo " if the value is different than the current value."
echo " This suitable to form a Makefile dependency."
if [ ! -e "$1" ]; then
>&2 echo "USAGE: $0 logfile"
exit 1
fi
if [ ! -e "${EXE}" ]; then
>&2 echo "ERROR: please build ${TEST}!"
exit 1
fi


sed -n "s/FAILED: \(..*\)/\1/p" "$1" | while read -r LINE; do
EXPORT=""
for KEYVAL in ${LINE}; do
EXPORT="${EXPORT} OPENCL_LIBSMM_SMM_${KEYVAL}"
done
if [ "${EXPORT}" ]; then
eval "${EXPORT} ${EXE}"
fi
done
3 changes: 2 additions & 1 deletion src/acc/opencl/smm/tune_multiply.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
# #
# For information on the license, see the LICENSE file. #
# For further information please visit https://dbcsr.cp2k.org #
# SPDX-License-Identifier: GPL-2.0+ #
# SPDX-License-Identifier: BSD-3-Clause #
# SPDX-License-Identifier: BSD-3-Clause #
####################################################################################################
import opentuner
from opentuner.search.manipulator import IntegerParameter
Expand Down
2 changes: 1 addition & 1 deletion src/acc/opencl/smm/tune_multiply.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# #
# For information on the license, see the LICENSE file. #
# For further information please visit https://dbcsr.cp2k.org #
# SPDX-License-Identifier: GPL-2.0+ #
# SPDX-License-Identifier: BSD-3-Clause #
####################################################################################################

XARGS=$(command -v xargs)
Expand Down

0 comments on commit f231f4a

Please sign in to comment.