Skip to content

Commit

Permalink
fix nixpkgs build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
jinluchang committed Jan 7, 2025
1 parent 1234ac6 commit 4812987
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 25 deletions.
7 changes: 2 additions & 5 deletions nixpkgs/qlat-examples-cpp-grid.nix
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,10 @@ in
gpu_extra = ''
pwd
cp -pv "${../qcore/bin/NVCC.py}" "$PWD/NVCC.py"
# patchShebangs --build "$PWD/NVCC.py"
patchShebangs --build "$PWD/NVCC.py"
#
cp -pv "${../qcore/bin/bind-gpu-qlat.sh}" "$PWD/bind-gpu-qlat.sh"
# patchShebangs --build "$PWD/bind-gpu-qlat.sh"
patchShebangs --build "$PWD/bind-gpu-qlat.sh"
export NGPU=${ngpu}
export mpi_options="$mpi_options $PWD/bind-gpu-qlat.sh"
#
Expand Down Expand Up @@ -148,9 +148,6 @@ in
#
echo num_proc=$num_proc
#
# patchShebangs --build */run.sh
echo
#
make run-grid -j$num_proc SHELL=$SHELL
#
echo
Expand Down
7 changes: 2 additions & 5 deletions nixpkgs/qlat-examples-cpp.nix
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ in
gpu_extra = ''
pwd
cp -pv "${../qcore/bin/NVCC.py}" "$PWD/NVCC.py"
# patchShebangs --build "$PWD/NVCC.py"
patchShebangs --build "$PWD/NVCC.py"
#
cp -pv "${../qcore/bin/bind-gpu-qlat.sh}" "$PWD/bind-gpu-qlat.sh"
# patchShebangs --build "$PWD/bind-gpu-qlat.sh"
patchShebangs --build "$PWD/bind-gpu-qlat.sh"
export NGPU=${ngpu}
export mpi_options="$mpi_options $PWD/bind-gpu-qlat.sh"
#
Expand Down Expand Up @@ -136,9 +136,6 @@ in
echo NIX_BUILD_TOP=$NIX_BUILD_TOP
echo
#
# patchShebangs --build */run.sh
echo
#
echo num_proc=$num_proc
#
make run -j$num_proc SHELL=$SHELL
Expand Down
7 changes: 2 additions & 5 deletions nixpkgs/qlat-examples-py-cps.nix
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ in
gpu_extra = ''
pwd
cp -pv "${../qcore/bin/NVCC.py}" "$PWD/NVCC.py"
# patchShebangs --build "$PWD/NVCC.py"
patchShebangs --build "$PWD/NVCC.py"
#
cp -pv "${../qcore/bin/bind-gpu-qlat.sh}" "$PWD/bind-gpu-qlat.sh"
# patchShebangs --build "$PWD/bind-gpu-qlat.sh"
patchShebangs --build "$PWD/bind-gpu-qlat.sh"
export NGPU=${ngpu}
export mpi_options="$mpi_options $PWD/bind-gpu-qlat.sh"
#
Expand Down Expand Up @@ -146,9 +146,6 @@ in
#
echo num_proc=$num_proc
#
# patchShebangs --build */run.py
echo
#
make update-sources SHELL=$SHELL
echo
make run-cps -j$num_proc SHELL=$SHELL
Expand Down
7 changes: 2 additions & 5 deletions nixpkgs/qlat-examples-py-gpt.nix
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ in
gpu_extra = ''
pwd
cp -pv "${../qcore/bin/NVCC.py}" "$PWD/NVCC.py"
# patchShebangs --build "$PWD/NVCC.py"
patchShebangs --build "$PWD/NVCC.py"
#
cp -pv "${../qcore/bin/bind-gpu-qlat.sh}" "$PWD/bind-gpu-qlat.sh"
# patchShebangs --build "$PWD/bind-gpu-qlat.sh"
patchShebangs --build "$PWD/bind-gpu-qlat.sh"
export NGPU=${ngpu}
export mpi_options="$mpi_options $PWD/bind-gpu-qlat.sh"
#
Expand Down Expand Up @@ -143,9 +143,6 @@ in
#
echo num_proc=$num_proc
#
# patchShebangs --build */run.py
echo
#
make update-sources SHELL=$SHELL
echo
make run-gpt -j$num_proc SHELL=$SHELL
Expand Down
7 changes: 2 additions & 5 deletions nixpkgs/qlat-examples-py.nix
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ in
gpu_extra = ''
pwd
cp -pv "${../qcore/bin/NVCC.py}" "$PWD/NVCC.py"
# patchShebangs --build "$PWD/NVCC.py"
patchShebangs --build "$PWD/NVCC.py"
#
cp -pv "${../qcore/bin/bind-gpu-qlat.sh}" "$PWD/bind-gpu-qlat.sh"
# patchShebangs --build "$PWD/bind-gpu-qlat.sh"
patchShebangs --build "$PWD/bind-gpu-qlat.sh"
export NGPU=${ngpu}
export mpi_options="$mpi_options $PWD/bind-gpu-qlat.sh"
#
Expand Down Expand Up @@ -137,9 +137,6 @@ in
#
echo num_proc=$num_proc
#
# patchShebangs --build */run.py
# echo
#
make update-sources SHELL=$SHELL
echo
make run -j$num_proc SHELL=$SHELL
Expand Down

0 comments on commit 4812987

Please sign in to comment.