File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change 8585# Execute instructions from the README file
8686conda_script=" $( awk ' /(Begin conda install)/{flag=1;next}/(End conda install)/{flag=0}flag' " $readme_file " | grep . | sed ' /^```/d' ) "
8787if [ -n " ${extra_packages} " ]; then
88- pip_extra_url =" --extra-index-url http://localhost:8080 "
88+ pip_extra_arg =" --find-links ${extra_packages} "
8989fi
9090while IFS= read -r line; do
9191 line=$( echo $line | sed -E " s/cuda_version=(.\{\{)?\s?\S+\s?(\}\})?/cuda_version=${cuda_version_conda} /g" )
9292 line=$( echo $line | sed -E " s/python(=)?3.[0-9]{1,}/python\1${python_version} /g" )
93- line=$( echo $line | sed -E " s/pip install (.\{\{)?\s?\S+\s?(\}\})?/pip install cudaq==${cudaq_version} -v ${pip_extra_url // \/ / \\ / } /g" )
93+ line=$( echo $line | sed -E " s/pip install (.\{\{)?\s?\S+\s?(\}\})?/pip install cudaq==${cudaq_version} -v ${pip_extra_arg } /g" )
9494 if [ -n " $( echo $line | grep " conda activate" ) " ]; then
9595 conda_env=$( echo " $line " | sed " s#conda activate##" | tr -d ' [:space:]' )
9696 source $( conda info --base) /bin/activate $conda_env
97- if [ -n " ${extra_packages} " ]; then
98- eval " pip install cudaq --find-links ${extra_packages} "
99- fi
10097 elif [ -n " $( echo $line | tr -d ' [:space:]' ) " ]; then
10198 eval " $line "
10299 fi
@@ -294,7 +291,7 @@ if [ -n "$server2_devices" ]; then
294291 CUDA_VISIBLE_DEVICES=$server2_devices mpiexec --allow-run-as-root -np 2 python3 " $qpud_py " --port 12002 &
295292fi
296293
297- sleep 5 # wait for servers to launch
294+ sleep 20 # wait for servers to launch
298295python3 " $root_folder /snippets/using/cudaq/platform/sample_async_remote.py" \
299296 --backend nvidia-mgpu --servers " $servers "
300297if [ ! $? -eq 0 ]; then
You can’t perform that action at this time.
0 commit comments