Skip to content
Draft
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions .github/workflows/email-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ permissions:
contents: read

jobs:
if: false
validate_email:
runs-on: ubuntu-24.04
if: github.repository == 'intel/llvm'
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/pr-code-format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ on:
- 'users/**'

jobs:
if: false
code_formatter:
runs-on: ubuntu-24.04
timeout-minutes: 30
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/sycl-bandit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ permissions:
contents: read

jobs:
if: false
bandit:
if: github.repository == 'intel/llvm'
name: Bandit
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/sycl-clang-tidy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ concurrency:
permissions: read-all

jobs:
if: false
run-clang-tidy:
if: ${{ !contains(github.event.pull_request.labels.*.name, 'disable-lint') }}
runs-on: [Linux, build]
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/sycl-linux-precommit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ concurrency:
permissions: read-all

jobs:
if: false
detect_changes:
uses: ./.github/workflows/sycl-detect-changes.yml

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/sycl-windows-precommit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ concurrency:
cancel-in-progress: true

jobs:
if: false
detect_changes:
uses: ./.github/workflows/sycl-detect-changes.yml

Expand Down
21 changes: 16 additions & 5 deletions .github/workflows/ur-build-offload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

permissions: read-all

on: [ workflow_call, workflow_dispatch ]
on: [ workflow_call, workflow_dispatch, pull_request ]

jobs:
offload_build:
Expand All @@ -13,9 +13,9 @@
build_type: [Release]
compiler: [{c: gcc, cxx: g++}]

runs-on: [ "Linux", "build" ]
runs-on: ["Linux", "bmg"]
container:
image: 'ghcr.io/intel/llvm/ubuntu2404_build'
image: 'ghcr.io/intel/llvm/ubuntu2404_intel_drivers:latest'

Check failure

Code scanning / zizmor

unpinned image references Error

unpinned image references

steps:
- name: Checkout LLVM-project
Expand Down Expand Up @@ -54,14 +54,25 @@
run: >
python3 llvm/buildbot/configure.py
--offload
--cuda
-t ${{matrix.build_type}}
--liboffload-path=./llvm-project-install

- name: Build intel/llvm
# This is so that device binaries can find the sycl runtime library
run: python3 llvm/buildbot/compile.py

- name: Debug CI platform information
- name: Compile test file
run: llvm/build/bin/clang++ -fsycl llvm/sycl/test-e2e/Basic/liboffload_test.cpp -o test_liboffload

- name: Run sycl-ls
run: >
LD_LIBRARY_PATH=./llvm-project-install/lib
UR_ADAPTERS_FORCE_LOAD=./llvm/build/lib/libur_adapter_offload.so
./llvm/build/bin/sycl-ls

- name: Run test
run: LD_LIBRARY_PATH=llvm/build/lib UR_ADAPTERS_FORCE_LOAD=llvm/build/lib/libur_adapter_offload.so ZE_AFFINITY_MASK=1 ./test_liboffload

- name: Get information about platform
if: ${{ always() }}
run: ./llvm/devops/scripts/get_system_info.sh
1 change: 1 addition & 0 deletions .github/workflows/ur-precommit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ concurrency:
permissions: read-all

jobs:
if: false
detect_changes:
name: Detect Changes
uses: ./.github/workflows/sycl-detect-changes.yml
Expand Down
43 changes: 43 additions & 0 deletions sycl/test-e2e/Basic/liboffload_test.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
#include <iostream>
#include <sycl/sycl.hpp>
using namespace sycl; // (optional) avoids need for "sycl::" before SYCL names



int main() {
// Create a default queue to enqueue work to the default device
queue myQueue;



// Allocate shared memory bound to the device and context associated to the
// queue Replacing malloc_shared with malloc_host would yield a correct
// program that allocated device-visible memory on the host.
int* data = sycl::malloc_shared<int>(1024, myQueue);



myQueue.parallel_for(1024, [=](id<1> idx) {
// Initialize each buffer element with its own rank number starting at 0
data[idx] = idx;
}); // End of the kernel function



// Explicitly wait for kernel execution since there is no accessor involved
myQueue.wait();



// Print result
for (int i = 0; i < 1024; i++)
std::cout << "data[" << i << "] = " << data[i] << std::endl;



sycl::free(data, myQueue);



return 0;
}
Loading