Skip to content

FIX: fixing various pragma open loops #129

FIX: fixing various pragma open loops

FIX: fixing various pragma open loops #129

Workflow file for this run

name: gpuvmem CI
on:
push:
branches: [master, framework_dev, development]
paths:
- '**.cu'
- '**.cuh'
- '**.c'
- '**.h'
- '**.cpp'
- '**.hpp'
- '**.cmake'
- CMakeLists.txt
pull_request:
branches: [master]
types: [opened, reopened]
paths:
- '**.cu'
- '**.cuh'
- '**.c'
- '**.h'
- '**.cpp'
- '**.hpp'
- '**.cmake'
- CMakeLists.txt
env:
BUILD_DIR: build
CONFIG: Debug
CUDA_ARCH: 75 # Default architecture for CI (Turing - widely supported)
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
container:
image: ghcr.io/${{ github.repository }}:base
credentials:
username: ${{ github.repository_owner }}
password: ${{ secrets.REGISTRY_TOKEN }}
steps:
- name: Verify CUDA installation
run: |
nvcc --version
test -f /usr/local/cuda/bin/nvcc
echo "CUDA verified successfully"
- name: Install Git LFS
run: |
apt-get update
apt-get install -y --no-install-recommends git-lfs
rm -rf /var/lib/apt/lists/*
- name: Checkout code
uses: actions/checkout@v4
with:
lfs: true
- name: Configure CMake
id: configure
run: |
cmake . -B ${{ env.BUILD_DIR }} \
-DCMAKE_BUILD_TYPE=${{ env.CONFIG }} \
-DCUDA_ARCH=${{ env.CUDA_ARCH }}
- name: Show CMake configuration errors
if: failure() && steps.configure.outcome == 'failure'
working-directory: ${{ env.BUILD_DIR }}
run: |
echo "=== CMake Configuration Errors ==="
if [[ -f "CMakeFiles/CMakeOutput.log" ]]; then
echo "---- CMakeFiles/CMakeOutput.log ----"
tail -100 CMakeFiles/CMakeOutput.log
echo "----"
fi
if [[ -f "CMakeFiles/CMakeError.log" ]]; then
echo "---- CMakeFiles/CMakeError.log ----"
tail -100 CMakeFiles/CMakeError.log
echo "----"
fi
- name: Build gpuvmem
working-directory: ${{ env.BUILD_DIR }}
run: |
cmake --build . --target all --verbose -j$(nproc)
- name: Verify build output
run: |
if [[ -f "${{ env.BUILD_DIR }}/bin/gpuvmem" ]]; then
echo "Build successful: gpuvmem binary found"
ls -lh ${{ env.BUILD_DIR }}/bin/gpuvmem
else
echo "Warning: gpuvmem binary not found in expected location"
find ${{ env.BUILD_DIR }} -name "gpuvmem" -type f || true
fi