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

DRAFT: Add first cut of clik jobs #587

Draft
wants to merge 15 commits into
base: main
Choose a base branch
from

Conversation

alan-forbes-cp
Copy link
Collaborator

Overview

Provide a brief overview of what your changes do, summarizing their effects
and consequences.

Reason for change

Describe how the current behaviour of the project is causing problems for you
or is otherwise unsatisfactory for your use case.

Description of change

Describe the intended behaviour your changes are meant to introduce to the
project and explain how they resolve the problem stated above. Detail any
relevant changes that may affect other users of the project, such as
compilation options, runtime flags, expected inputs and outputs, API entry
points, etc.

If you have added new testing, provide details on what tests you have added
and what the purpose of them is.

Anything else we should know?

If there's any other relevant information we should know that may help us in
understanding and verifying your patch, please include it here.

Checklist

  • Read and follow the project Code of Conduct.
  • Make sure the project builds successfully with your changes.
  • Run relevant testing locally to avoid regressions.
  • Run clang-format-19 on all modified code.

- name: Checkout repo
uses: actions/[email protected]
- name: setup-ubuntu
uses: ./.github/actions/setup_build
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think clik requires llvm so maybe we can get rid of that part - it's also so fast I'm not sure we need the cache, but if we do we should be consistent below.

Copy link
Collaborator

@coldav coldav Nov 14, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we also don't need vulkan sdk, I'm wondering if we should not bother calling setup_ubuntu and just install ninja if needed (or add a few more args so we get the basics). That also has advantages in showing how simple it is to use.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wondered about that for this job. Both clik jobs are green now so I'll investigate a minimal preamble.

- run: LD_PRELOAD=/lib/x86_64-linux-gnu/libpthread.so.0 ninja -Cbuild_clik check

# Based on: mr-ubuntu-gcc-x86_64-clik-refsi
run-ubuntu-gcc-x86_64-clik-refsi:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just a thought since the start overheads seem bigger than the actual run-time, maybe just combine into one job (but two different steps).

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK - I'll do that. Jobs are green with just a ninja install.

echo WORKSPACE is $GITHUB_WORKSPACE && echo PWD is `pwd` && ls -al
cmake -Bbuild_clik -GNinja -DCMAKE_INSTALL_PREFIX=install clik
LD_PRELOAD=/lib/x86_64-linux-gnu/libpthread.so.0 ninja -Cbuild_clik check
- name: Clean
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can't you just use a different build directory below - no need to clean.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants