[go: nahoru, domu]

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

Python support for GPU ops [WIP] #759

Closed
wants to merge 20 commits into from
Closed
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Add CUQUANTUM_ROOT detection for automatic setup in configure.sh
  • Loading branch information
jaeyoo committed Mar 30, 2023
commit 9ae4fd00b3759eb3198b687bc81962b4cca8820f
11 changes: 11 additions & 0 deletions configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,17 @@ while [[ "$TF_CUDA_VERSION" == "" ]]; do
esac
done

# Check if we are building cuQuantum ops on top of CUDA.
if [[ "$TF_NEED_CUDA" == "1" ]]; then
echo "GPU is selected, default acceleration is CUDA for TFQuantum."
echo "Searching cuQuantum library from environment variable CUQUANTUM_ROOT..."
if [[ "$CUQUANTUM_ROOT" != "" ]]; then
echo " [*] cuQuantum library is detected here: CUQUANTUM_ROOT=$CUQUANTUM_ROOT."
write_action_env_to_bazelrc "CUQUANTUM_ROOT" ${CUQUANTUM_ROOT}
else
echo " [*] cuQuantum library is NOT detected. Using general CUDA ops..."
fi
fi

# Check if it's installed
if [[ $(pip show tensorflow) == *tensorflow* ]] || [[ $(pip show tf-nightly) == *tf-nightly* ]]; then
Expand Down