Skip to content

Commit

Permalink
Add license comments (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
chhwang committed Jun 25, 2023
1 parent 2640578 commit 21eed72
Show file tree
Hide file tree
Showing 72 changed files with 214 additions and 19 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.

cmake_minimum_required(VERSION 3.26)
project(mscclpp LANGUAGES CUDA CXX)
set(CMAKE_CXX_STANDARD 17)
Expand Down
16 changes: 2 additions & 14 deletions SUPPORT.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
# TODO: The maintainer of this repo has not yet edited this file

**REPO OWNER**: Do you want Customer Service & Support (CSS) support for this product/project?

- **No CSS support:** Fill out this template with information about how to file issues and get help.
- **Yes CSS support:** Fill out an intake form at [aka.ms/onboardsupport](https://aka.ms/onboardsupport). CSS will work with/help you to determine next steps.
- **Not sure?** Fill out an intake as though the answer were "Yes". CSS will help you decide.

*Then remove this first heading from this SUPPORT.MD file before publishing your repo.*

# Support

## How to file issues and get help
Expand All @@ -16,10 +6,8 @@ This project uses GitHub Issues to track bugs and feature requests. Please searc
issues before filing new issues to avoid duplicates. For new issues, file your bug or
feature request as a new Issue.

For help and questions about using this project, please **REPO MAINTAINER: INSERT INSTRUCTIONS HERE
FOR HOW TO ENGAGE REPO OWNERS OR COMMUNITY FOR HELP. COULD BE A STACK OVERFLOW TAG OR OTHER
CHANNEL. WHERE WILL YOU HELP PEOPLE?**.
For help and questions about using this project, please file them as new Issues.

## Microsoft Support Policy

Support for this **PROJECT or PRODUCT** is limited to the resources listed above.
Support for this project is limited to the resources listed above.
3 changes: 3 additions & 0 deletions cmake/AddClangFormatTargets.cmake
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.

# Add targets to run clang-format

find_program(CLANG_FORMAT clang-format)
Expand Down
3 changes: 3 additions & 0 deletions cmake/FindGDRCopy.cmake
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.

# Find the GDRCopy libraries
#
# The following variables are optionally searched for defaults
Expand Down
3 changes: 3 additions & 0 deletions cmake/FindIBVerbs.cmake
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.

# Find the IB Verbs libraries
#
# The following variables are optionally searched for defaults
Expand Down
3 changes: 3 additions & 0 deletions cmake/FindNUMA.cmake
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.

# Find the numa libraries
#
# The following variables are optionally searched for defaults
Expand Down
3 changes: 3 additions & 0 deletions include/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.

file(GLOB_RECURSE HEADERS CONFIGURE_DEPENDS *.hpp)
target_sources(mscclpp PUBLIC FILE_SET HEADERS FILES ${HEADERS})
install(TARGETS mscclpp FILE_SET HEADERS)
3 changes: 3 additions & 0 deletions include/mscclpp/channel.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

#ifndef MSCCLPP_CHANNEL_HPP_
#define MSCCLPP_CHANNEL_HPP_

Expand Down
3 changes: 3 additions & 0 deletions include/mscclpp/concurrency.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

#ifndef MSCCLPP_CONCURRENCY_HPP_
#define MSCCLPP_CONCURRENCY_HPP_

Expand Down
3 changes: 3 additions & 0 deletions include/mscclpp/core.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

#ifndef MSCCLPP_CORE_HPP_
#define MSCCLPP_CORE_HPP_

Expand Down
3 changes: 3 additions & 0 deletions include/mscclpp/cuda_utils.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

#ifndef MSCCLPP_CUDA_UTILS_HPP_
#define MSCCLPP_CUDA_UTILS_HPP_

Expand Down
3 changes: 3 additions & 0 deletions include/mscclpp/epoch.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

#ifndef MSCCLPP_EPOCH_HPP_
#define MSCCLPP_EPOCH_HPP_

Expand Down
3 changes: 3 additions & 0 deletions include/mscclpp/errors.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

#ifndef MSCCLPP_ERRORS_HPP_
#define MSCCLPP_ERRORS_HPP_

Expand Down
3 changes: 3 additions & 0 deletions include/mscclpp/fifo.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

#ifndef MSCCLPP_FIFO_HPP_
#define MSCCLPP_FIFO_HPP_

Expand Down
3 changes: 3 additions & 0 deletions include/mscclpp/poll.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

#ifndef MSCCLPP_POLL_HPP_
#define MSCCLPP_POLL_HPP_

Expand Down
3 changes: 3 additions & 0 deletions include/mscclpp/proxy.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

#ifndef MSCCLPP_PROXY_HPP_
#define MSCCLPP_PROXY_HPP_

Expand Down
3 changes: 3 additions & 0 deletions include/mscclpp/utils.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

#ifndef MSCCLPP_UTILS_HPP_
#define MSCCLPP_UTILS_HPP_

Expand Down
3 changes: 3 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.

file(GLOB_RECURSE SOURCES CONFIGURE_DEPENDS *.cc)
target_sources(mscclpp PRIVATE ${SOURCES})
3 changes: 3 additions & 0 deletions src/bootstrap/bootstrap.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

#include <sys/resource.h>

#include <cstring>
Expand Down
3 changes: 3 additions & 0 deletions src/c_style_remnants.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

#include "api.h"
#include "debug.h"

Expand Down
3 changes: 3 additions & 0 deletions src/channel.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

#include <mscclpp/channel.hpp>

#include "api.h"
Expand Down
3 changes: 3 additions & 0 deletions src/communicator.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

#include "communicator.hpp"

#include <mscclpp/core.hpp>
Expand Down
3 changes: 3 additions & 0 deletions src/config.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

#include "config.hpp"

namespace mscclpp {
Expand Down
3 changes: 3 additions & 0 deletions src/connection.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

#include "connection.hpp"

#include <mscclpp/utils.hpp>
Expand Down
3 changes: 3 additions & 0 deletions src/cuda_utils.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

#include <mscclpp/cuda_utils.hpp>

namespace mscclpp {
Expand Down
3 changes: 3 additions & 0 deletions src/epoch.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

#include <mscclpp/epoch.hpp>

#include "api.h"
Expand Down
3 changes: 3 additions & 0 deletions src/errors.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

#include <cstring>
#include <mscclpp/errors.hpp>

Expand Down
3 changes: 3 additions & 0 deletions src/fifo.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

#include <emmintrin.h>

#include <mscclpp/cuda_utils.hpp>
Expand Down
3 changes: 3 additions & 0 deletions src/ib.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

#include "ib.hpp"

#include <infiniband/verbs.h>
Expand Down
3 changes: 3 additions & 0 deletions src/include/api.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

#ifndef MSCCLPP_API_H_
#define MSCCLPP_API_H_

Expand Down
3 changes: 3 additions & 0 deletions src/include/communicator.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

#ifndef MSCCL_COMMUNICATOR_HPP_
#define MSCCL_COMMUNICATOR_HPP_

Expand Down
3 changes: 3 additions & 0 deletions src/include/config.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

#ifndef MSCCLPP_CONFIG_H_
#define MSCCLPP_CONFIG_H_

Expand Down
3 changes: 3 additions & 0 deletions src/include/connection.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

#ifndef MSCCLPP_CONNECTION_HPP_
#define MSCCLPP_CONNECTION_HPP_

Expand Down
3 changes: 3 additions & 0 deletions src/include/ib.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

#ifndef MSCCLPP_IB_HPP_
#define MSCCLPP_IB_HPP_

Expand Down
3 changes: 3 additions & 0 deletions src/include/numa.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

#ifndef MSCCLPP_NUMA_HPP_
#define MSCCLPP_NUMA_HPP_

Expand Down
3 changes: 3 additions & 0 deletions src/include/registered_memory.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

#ifndef MSCCLPP_REGISTERED_MEMORY_HPP_
#define MSCCLPP_REGISTERED_MEMORY_HPP_

Expand Down
7 changes: 2 additions & 5 deletions src/include/socket.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
/*************************************************************************
* Copyright (c) 2016-2022, NVIDIA CORPORATION. All rights reserved.
*
* See LICENSE.txt for license information
************************************************************************/
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

#ifndef MSCCLPP_SOCKET_H_
#define MSCCLPP_SOCKET_H_
Expand Down
3 changes: 3 additions & 0 deletions src/npkit/npkit.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

#include "npkit.h"

#include <cuda_runtime.h>
Expand Down
3 changes: 3 additions & 0 deletions src/npkit/npkit.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

#ifndef NPKIT_H_
#define NPKIT_H_

Expand Down
3 changes: 3 additions & 0 deletions src/npkit/npkit_event.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

#ifndef NPKIT_EVENT_H_
#define NPKIT_EVENT_H_

Expand Down
3 changes: 3 additions & 0 deletions src/npkit/npkit_struct.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

#ifndef NPKIT_STRUCT_H_
#define NPKIT_STRUCT_H_

Expand Down
3 changes: 3 additions & 0 deletions src/numa.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

#include <numa.h>

#include <fstream>
Expand Down
3 changes: 3 additions & 0 deletions src/proxy.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

#include <atomic>
#include <mscclpp/core.hpp>
#include <mscclpp/proxy.hpp>
Expand Down
3 changes: 3 additions & 0 deletions src/registered_memory.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

#include "registered_memory.hpp"

#include <cuda.h>
Expand Down
3 changes: 3 additions & 0 deletions src/utils.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

#include <signal.h>
#include <unistd.h>

Expand Down
3 changes: 3 additions & 0 deletions src/utils_internal.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

#include "utils_internal.hpp"

#include <unistd.h>
Expand Down
3 changes: 3 additions & 0 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.

function(add_test_executable name sources)
add_executable(${name} ${sources})
target_link_libraries(${name} mscclpp CUDA::cudart CUDA::cuda_driver)
Expand Down
3 changes: 3 additions & 0 deletions test/allgather_test_cpp.cu
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

#include <mscclpp/channel.hpp>
#include <mscclpp/core.hpp>

Expand Down
3 changes: 3 additions & 0 deletions test/allgather_test_host_offloading.cu
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

#include <mscclpp/core.hpp>
#include <mscclpp/cuda_utils.hpp>
#include <mscclpp/epoch.hpp>
Expand Down
3 changes: 3 additions & 0 deletions test/mp_unit/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.

target_sources(mp_unit_tests PRIVATE
mp_unit_tests.cc
bootstrap_tests.cc
Expand Down
3 changes: 3 additions & 0 deletions test/mp_unit/bootstrap_tests.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

#include <mpi.h>

#include "config.hpp"
Expand Down
3 changes: 3 additions & 0 deletions test/mp_unit/communicator_tests.cu
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

#include <mpi.h>

#include <mscclpp/cuda_utils.hpp>
Expand Down
3 changes: 3 additions & 0 deletions test/mp_unit/device_channel_tests.cu
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

#include "mp_unit_tests.hpp"

void DeviceChannelOneToOneTest::SetUp() {
Expand Down
Loading

0 comments on commit 21eed72

Please sign in to comment.