* INTC Contribution to the O-RAN F Release for O-DU Low
[o-du/phy.git] / fapi_5g / bin / oran_5g_fapi.sh
1 ###############################################################################
2 #
3 #   Copyright (c) 2021 Intel.
4 #
5 #   Licensed under the Apache License, Version 2.0 (the "License");
6 #   you may not use this file except in compliance with the License.
7 #   You may obtain a copy of the License at
8 #
9 #       http://www.apache.org/licenses/LICENSE-2.0
10 #
11 #   Unless required by applicable law or agreed to in writing, software
12 #   distributed under the License is distributed on an "AS IS" BASIS,
13 #   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 #   See the License for the specific language governing permissions and
15 #   limitations under the License.
16 #
17 ###############################################################################
18
19 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$DIR_WIRELESS_WLS
20
21 MACHINE_TYPE=`uname -m`
22
23 if [ ${MACHINE_TYPE} == 'x86_64' ]; then
24
25         ulimit -c unlimited
26         echo 1 > /proc/sys/kernel/core_uses_pid
27
28         sysctl -w kernel.sched_rt_runtime_us=-1
29         sysctl -w kernel.shmmax=2147483648
30         sysctl -w kernel.shmall=2147483648
31         chkconfig --level 12345 irqbalance off
32         echo 0 > /proc/sys/kernel/nmi_watchdog
33         echo 1 > /sys/module/rcupdate/parameters/rcu_cpu_stall_suppress
34
35 fi
36
37 echo start ORAN 5G FAPI
38 if [ "$1" = "-g" ]; then
39     shift
40     if [ "$RTE_TARGET" == "x86_64-native-linuxapp-icx"]; then
41         /opt/intel/oneapi/debugger/10.2.4/gdb/intel64/bin/gdb-oneapi --args ./oran_5g_fapi $@
42     else
43         /home/opt/intel/system_studio_2019/bin/gdb-ia --args ./oran_5g_fapi $@
44     fi
45 else
46     ./oran_5g_fapi $@
47 fi