Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

build refactoring #36

Merged
merged 7 commits into from
Aug 6, 2024
Merged

build refactoring #36

merged 7 commits into from
Aug 6, 2024

Conversation

robik75
Copy link
Member

@robik75 robik75 commented Aug 4, 2024

What ❔

This PR re-implements the build process, introducing following features and changes:

  • a configuration flag no_cuda is implemented to allow code compilation and linking without the presence of a CUDA toolkit installation by replacing the CUDA API calls with stubs and completely bypasses native code compilation and linking, replacing all the extern "C" function calls and structures with stubs.
  • crate naming is consolidated and crate versions are bumped to 0.2.0

Why ❔

Compiling and executing non-GPU part of the codebase is desired to enable development work in environments where CUDA toolkit is not installed.

Checklist

  • PR title corresponds to the body of PR (we generate changelog entries from PRs).
  • Code has been formatted via cargo fmt and cargo clippy.

@robik75 robik75 requested review from popzxc and EmilLuta August 4, 2024 13:07
@robik75 robik75 self-assigned this Aug 4, 2024
@robik75 robik75 force-pushed the rr-build-refactor branch from 1b6ae98 to 5f301b7 Compare August 4, 2024 13:30
EmilLuta
EmilLuta previously approved these changes Aug 5, 2024
Copy link
Contributor

@EmilLuta EmilLuta left a comment

Choose a reason for hiding this comment

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

<3

@robik75 robik75 force-pushed the rr-build-refactor branch from 7c1fe98 to abab58e Compare August 5, 2024 13:37
@robik75 robik75 marked this pull request as ready for review August 5, 2024 14:46
@robik75 robik75 requested a review from mcarilli as a code owner August 5, 2024 14:46
@robik75 robik75 requested a review from EmilLuta August 5, 2024 14:46
@robik75 robik75 marked this pull request as draft August 6, 2024 06:53
@robik75 robik75 marked this pull request as ready for review August 6, 2024 08:37
popzxc
popzxc previously approved these changes Aug 6, 2024
Cargo.toml Outdated Show resolved Hide resolved
Cargo.toml Outdated Show resolved Hide resolved
@robik75 robik75 merged commit e2963f5 into main Aug 6, 2024
6 checks passed
@robik75 robik75 deleted the rr-build-refactor branch August 6, 2024 12:02
robik75 added a commit to matter-labs/era-shivini that referenced this pull request Aug 6, 2024
# What ❔

This PR is a follow up to
matter-labs/era-cuda#9
and
matter-labs/era-boojum-cuda#36

## Why ❔

All the dependencies need to be updated.

## Checklist

- [x] PR title corresponds to the body of PR (we generate changelog
entries from PRs).
- [x] Code has been formatted via `cargo fmt` and `cargo check`.
robik75 added a commit to matter-labs/era-shivini that referenced this pull request Aug 6, 2024
# What ❔

This PR is a follow up to
matter-labs/era-cuda#9
and
matter-labs/era-boojum-cuda#36

## Why ❔

All the dependencies need to be updated.

## Checklist

- [x] PR title corresponds to the body of PR (we generate changelog
entries from PRs).
- [x] Code has been formatted via `cargo fmt` and `cargo check`.

(cherry picked from commit 79910dc)
@robik75 robik75 mentioned this pull request Aug 8, 2024
2 tasks
robik75 added a commit that referenced this pull request Aug 8, 2024
# What ❔

This PR fixes some leftover naming issues from remaining from #36 .

## Checklist
- [x] PR title corresponds to the body of PR (we generate changelog
entries from PRs).
- [x] Code has been formatted via `cargo fmt` and `cargo clippy`.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants