| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 | #!/bin/sh# StarPU --- Runtime system for heterogeneous multicore architectures.## Copyright (C) 2011-2012                                Inria# Copyright (C) 2011-2012,2015,2017                      CNRS## StarPU is free software; you can redistribute it and/or modify# it under the terms of the GNU Lesser General Public License as published by# the Free Software Foundation; either version 2.1 of the License, or (at# your option) any later version.## StarPU is distributed in the hope that it will be useful, but# WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.## See the GNU Lesser General Public License in COPYING.LGPL for more details.#path_to_cocci_scripts=tools/dev/experimental/dir=${1:-.}if [ ! -d $dir ]then	echo "${path_to_cocci_scripts} does not exist...";	exit 1fi#cpu_func => cpu_funcsspatch -sp_file ${path_to_cocci_scripts}/cpu_func_to_cpu_funcs.cocci -dir $dir -in_place -very_quiet# cuda_func => cuda_funcssed 's/cpu_funcs/cuda_funcs/;    s/cpu_func/cuda_func/;    s/STARPU_MULTIPLE_CPU_IMPLEMENTATIONS/STARPU_MULTIPLE_CUDA_IMPLEMENTATIONS/' \    ${path_to_cocci_scripts}/cpu_func_to_cpu_funcs.cocci > /tmp/cuda.coccispatch -sp_file /tmp/cuda.cocci -dir $dir -in_place -very_quietrm /tmp/cuda.cocci# opencl_func => opencl_funcssed 's/cpu_funcs/opencl_funcs/;    s/cpu_func/opencl_func/;    s/STARPU_MULTIPLE_CPU_IMPLEMENTATIONS/STARPU_MULTIPLE_OPENCL_IMPLEMENTATIONS/'  \    ${path_to_cocci_scripts}/cpu_func_to_cpu_funcs.cocci > /tmp/opencl.coccispatch -sp_file /tmp/opencl.cocci -dir $dir -in_place -very_quietrm /tmp/opencl.cocciexit 0
 |