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

Fix post-script on Nova #2233

Closed
wants to merge 1 commit into from
Closed
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
17 changes: 13 additions & 4 deletions .github/scripts/nova_postscript.bash
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,22 @@ install_fbgemm_gpu_wheel "${BUILD_ENV_NAME}" fbgemm_gpu/dist/*.whl

# Test with PyTest
echo "[NOVA] Current working directory: $(pwd)"
CPU_GPU="${CU_VERSION}"
if [ "${CU_VERSION}" != 'cpu' ]; then
CPU_GPU=""
if [[ $CU_VERSION = cu* ]]; then
echo "[NOVA] Testing the CUDA variant of FBGEMM_GPU ..."
export fbgemm_variant="cuda"

elif [[ $CU_VERSION = rocm* ]]; then
echo "[NOVA] Testing the ROCm variant of FBGEMM_GPU ..."
export fbgemm_variant="rocm"

else
echo "[NOVA] Testing the CPU variant of FBGEMM_GPU ..."
export fbgemm_variant="cpu"
fi

$CONDA_RUN python3 -c "import torch; print('cuda.is_available() ', torch.cuda.is_available()); print ('device_count() ',torch.cuda.device_count());"
cd "${FBGEMM_REPO}/fbgemm_gpu/test" || { echo "[NOVA] Failed to cd to fbgemm_gpu/test from $(pwd)"; };
run_fbgemm_gpu_tests "${BUILD_ENV_NAME}" "${CPU_GPU}"
run_fbgemm_gpu_tests "${BUILD_ENV_NAME}" "${fbgemm_variant}"

# Workaround EACCES: permission denied error at checkout step
chown -R 1000:1000 /__w/FBGEMM/FBGEMM/ || echo "Unable to chown 1000:1000 from $USER, uid: $(id -u)"
Loading