Skip to content

Commit

Permalink
Merge pull request #2701 from psychocoderHPC/topic-allowAcceleratorTh…
Browse files Browse the repository at this point in the history
…reads

accelerator `threads`
  • Loading branch information
ax3l authored Sep 6, 2018
2 parents 0d7ad0c + 6fd2fb4 commit 9fa7f35
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bin/pic-configure
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ help()
echo " (default is <inputDirectory>)"
echo "-b | --backend - set compute backend and optionally the architecture"
echo " syntax: backend[:architecture]"
echo " supported backends: cuda, omp2b, serial, tbb"
echo " supported backends: cuda, omp2b, serial, tbb, threads"
echo " (e.g.: \"cuda:20;35;37;52;60\" or \"omp2b:native\" or \"omp2b\")"
echo " default: \"cuda\" if not set via environment variable PIC_BACKEND"
echo " note: architecture names are compiler dependent"
Expand Down Expand Up @@ -77,6 +77,11 @@ get_backend_flags()
if [ $num_options -eq 2 ] ; then
result+=" -DPMACC_CPU_ARCH=\"${backend_cfg[1]}\""
fi
elif [ "${backend_cfg[0]}" == "threads" ] ; then
result+=" -DALPAKA_ACC_CPU_B_SEQ_T_THREADS_ENABLE=ON"
if [ $num_options -eq 2 ] ; then
result+=" -DPMACC_CPU_ARCH=\"${backend_cfg[1]}\""
fi
else
echo "unsupported backend given '$1'" >&2
exit 1
Expand Down

0 comments on commit 9fa7f35

Please sign in to comment.