mscclpp
Copilot instructions561 starsChanged 8 months agoMITView on GitHub
This document outlines a few useful informations for contributing to this project. When adding new headers, place them in the appropriate directory based on their intended usage (public API vs. internal use). To prevent confusion, do not have duplicate names for headers in these two directories. Symbols declared in public headers must be properly documented using Doxygen-style comments, except forward declarations and private class members. In a few cases, we may need to add declarations in public headers that are…
- Installs packages
In this repositoryOne other file it gives its agents.
- device-code-reviewSkill
The file
We split this copilot-instructions.md into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
When adding new headers, place them in the appropriate directory based on their intended usage (public API vs.
≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Project Contribution Guidelines
This document outlines a few useful informations for contributing to this project.
C/C++ Headers Layout
This project has two C/C++ header directories: include/mscclpp/ and src/include/. Headers in include/mscclpp/ are public headers that define the public API of the project. Headers in src/include/ are internal headers used only within the project.
When adding new headers, place them in the appropriate directory based on their intended usage (public API vs. internal use). To prevent confusion, do not have duplicate names for headers in these two directories.
Symbols declared in public headers must be properly documented using Doxygen-style comments, except forward declarations and private class members. In a few cases, we may need to add declarations in public headers that are not intended for public use. In such cases, declare them under mscclpp::detail namespace, where we do not necessarily document every symbol.
License Header
A license header must be included at the top of each source code file in the project.
For Python source code:
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.For C/C++/CUDA source code:
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.Formatting
If you have modified any code in the project, run ./tools/lint.sh to automatically format the entire source code before finishing iterations. Note that this script formats only files that are tracked by git, so if you have added new files, make sure to git add them first.
Building and Testing
The following commands are commonly used for building and testing the project. See docs/quickstart.md for more detailed instructions.
For building libraries and tests:
mkdir -p build && cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make -j$(nproc)
cd ..For testing after successful build:
# To run tests with two GPUs - two is enough for most tests
mpirun -np 2 ./build/bin/mp_unit_tests
# To run tests excluding IB-related ones (when IB is not available)
mpirun -np 2 ./build/bin/mp_unit_tests --filter=-*Ib*For building a Python package:
python3 -m pip install -e .For Python tests after building the package:
# Run tests with 8 GPUs - adjust the number as needed
mpirun -np 8 python3 -m pytest ./python/test/test_mscclpp.py -vxFor building documentation (see dependencies in docs/requirements.txt):
cd docs
doxygen
make html
cd ..Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

