Skip to content

Commit

Permalink
programs/will-it-scale: use native python3
Browse files Browse the repository at this point in the history
This reverts ddd4c73 ("tests/will-it-scale: use python3.8 to run will-it-scale")

This simplies the build of will-it-scale and resolves issue reported
on fedora 38 [0].

The downside is it causes that will-it-scale can't run on distro which doesn't have
native package for pyhon3.8 and above.

Link: #316 [0]
Signed-off-by: Philip Li <[email protected]>
  • Loading branch information
rli9 committed Sep 17, 2023
1 parent afcdf50 commit 087af58
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 13 deletions.
14 changes: 2 additions & 12 deletions programs/will-it-scale/pkg/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,11 @@ pkgrel=1
url='https://github.com/antonblanchard/will-it-scale.git'
arch=('i386' 'x86_64' 'aarch64')
license=('GPL')
source=('https://github.com/antonblanchard/will-it-scale.git'
https://www.python.org/ftp/python/3.8.3/Python-3.8.3.tar.xz)
md5sums=('SKIP' 'SKIP')

build_python3()
{
cd $srcdir/Python-3.8.3
./configure --prefix=${pkgdir}/lkp/benchmarks/python3
make
make install
}
source=('https://github.com/antonblanchard/will-it-scale.git')
md5sums=('SKIP')

build()
{
build_python3
cd $srcdir/${pkgname}
make
}
Expand Down
5 changes: 4 additions & 1 deletion programs/will-it-scale/run
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
# - no_affinity
# - smt

. $LKP_SRC/lib/debug.sh

## It Scale takes a testcase and runs it from 1 through to n
## parallel copies to see if the testcase will scale. It
## builds both a process and threads based test in order
Expand Down Expand Up @@ -44,4 +46,5 @@ fi

ulimit -n 65536

log_cmd /lkp/benchmarks/python3/bin/python3 ./runtest.py $test $duration $mode $no_affinity $smt $threads_to_iterate
has_cmd python3 || die "python3 is not found in $PATH"
log_cmd python3 ./runtest.py $test $duration $mode $no_affinity $smt $threads_to_iterate

0 comments on commit 087af58

Please sign in to comment.