Skip to content

Add Bazel support and rename external to third_party#73

Merged
MuGdxy merged 17 commits intoMuGdxy:mini20from
hugooole:main
Dec 22, 2025
Merged

Add Bazel support and rename external to third_party#73
MuGdxy merged 17 commits intoMuGdxy:mini20from
hugooole:main

Conversation

@hugooole
Copy link
Copy Markdown
Collaborator

No description provided.

hugooole and others added 17 commits October 14, 2025 10:23
1. Install bazel with [bazelisk](https://github.com/bazelbuild/bazelisk)
2. [Set alias for bazel `alias bazel='bazelisk'` in `.bashrc` or other shell config file on linux system]
3. RUN following commands for test (haven't test on windows)

>NOTE : change `--cuda_archs` to your own case

``` bash
bazel run //test:muda_unit_test --cuda_archs=compute_89:compute_89,sm_89 -c opt     
bazel run //test:muda_linear_sysytem_test --cuda_archs=compute_89:compute_89,sm_89 -c opt
bazel run //test:muda_eigen_test --cuda_archs=compute_89:compute_89,sm_89 -c opt
bazel run //example:examples --cuda_archs=compute_89:compute_89,sm_89 -c opt
```

To enable `muda_check`, `muda_compute_graph`, `muda_nvtx3`, add flags `--//:muda_check` , `--//:muda_compute_graph` or `--//:muda_nvtx3` repectively when build

```bash
bazel build --//:muda_check --//:muda_compute_graph --//:muda_nvtx3 //...
```

## Changes
1. Add MODULE.bazel, BUILD.bazel etc files for bazel build
2. Change dir `external` to `third_party` as `external` is reserved by Bazel and needed for hedron_compile_commands
Commented out debug output for blockDim.
@hugooole hugooole requested a review from MuGdxy December 22, 2025 10:28
@MuGdxy MuGdxy merged commit fad2ae6 into MuGdxy:mini20 Dec 22, 2025
1 check passed
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.

3 participants