Skip to content

Commit cc30026

Browse files
authored
[ci] test
Updated build script to use OpenCL backend and adjust SDK path.
1 parent f94603f commit cc30026

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/build-and-run.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,15 @@ jobs:
4040
run: |
4141
cd GPULlama3.java/external/tornadovm
4242
source venv/bin/activate
43-
make # Uses the initial TORNADO_SDK from env
43+
44+
# Use a different Maven command to ensure the opencl-backend is used
45+
./mvnw -Pjdk21,opencl-backend -Dtornado.backend=opencl install
4446
4547
# After build, find and update TORNADO_SDK to the actual SDK location
46-
TORNADO_SDK_DIR=$(ls -d dist/tornado-sdk/tornado-sdk-* | head -1)
48+
# Look for the OpenCL specific directory instead of tornado-sdk-*
49+
TORNADO_SDK_DIR=$(ls -d dist/tornadovm-*-opencl-linux-amd64 | head -1)
50+
51+
# The SDK might be one level deeper, depending on the structure, but we'll try this first.
4752
FULL_TORNADO_SDK="${PWD}/${TORNADO_SDK_DIR}"
4853
echo "TORNADO_SDK=${FULL_TORNADO_SDK}" >> $GITHUB_ENV
4954
echo "Updated TORNADO_SDK to: ${FULL_TORNADO_SDK}"

0 commit comments

Comments
 (0)