Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

accelerator threads #2701

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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