copyright + ack

This commit is contained in:
Awni Hannun
2023-11-30 11:12:53 -08:00
parent a56e0888b8
commit 46a39e5b1f
211 changed files with 449 additions and 1 deletions

View File

@@ -1,3 +1,5 @@
// Copyright © 2023 Apple Inc.
#include "mlx/backend/metal/allocator.h"
#include "mlx/backend/metal/metal.h"

View File

@@ -1,3 +1,5 @@
// Copyright © 2023 Apple Inc.
#pragma once
#include <map>

View File

@@ -1,3 +1,5 @@
// Copyright © 2023 Apple Inc.
#include <algorithm>
#include <cassert>
#include <iostream>

View File

@@ -1,3 +1,5 @@
// Copyright © 2023 Apple Inc.
#include <sstream>
#include "mlx/backend/metal/copy.h"

View File

@@ -1,3 +1,5 @@
// Copyright © 2023 Apple Inc.
#pragma once
#include "mlx/backend/common/copy.h"

View File

@@ -1,3 +1,5 @@
// Copyright © 2023 Apple Inc.
#include <dlfcn.h>
#include <cstdlib>
#include <filesystem>

View File

@@ -1,3 +1,5 @@
// Copyright © 2023 Apple Inc.
#pragma once
#include <Metal/Metal.hpp>

View File

@@ -1,3 +1,5 @@
// Copyright © 2023 Apple Inc.
#include "mlx/primitives.h"
namespace mlx::core {

View File

@@ -1,3 +1,5 @@
// Copyright © 2023 Apple Inc.
#include <algorithm>
#include <cassert>
#include <numeric>

View File

@@ -1,3 +1,5 @@
// Copyright © 2023 Apple Inc.
#include "mlx/backend/metal/kernels/bf16.h"
template <typename T>

View File

@@ -1,3 +1,5 @@
// Copyright © 2023 Apple Inc.
#include <metal_atomic>
#include <metal_simdgroup>

View File

@@ -1,3 +1,5 @@
// Copyright © 2023 Apple Inc.
#pragma once
#include <metal_atomic>

View File

@@ -1,3 +1,5 @@
// Copyright © 2023 Apple Inc.
#pragma once
#include <metal_stdlib>

View File

@@ -1,3 +1,5 @@
// Copyright © 2023 Apple Inc.
#pragma once
#include "mlx/backend/metal/kernels/bf16.h"

View File

@@ -1,3 +1,5 @@
// Copyright © 2023 Apple Inc.
#include <metal_integer>
#include <metal_math>

View File

@@ -1,3 +1,5 @@
// Copyright © 2023 Apple Inc.
#pragma once
#include <metal_stdlib>

View File

@@ -1,3 +1,5 @@
// Copyright © 2023 Apple Inc.
#include <metal_stdlib>
#include "mlx/backend/metal/kernels/conv_params.h"

View File

@@ -1,3 +1,5 @@
// Copyright © 2023 Apple Inc.
#pragma once
template <int NDIM>

View File

@@ -1,3 +1,5 @@
// Copyright © 2023 Apple Inc.
#include "mlx/backend/metal/kernels/bf16.h"
#include "mlx/backend/metal/kernels/utils.h"

View File

@@ -1,3 +1,5 @@
// Copyright © 2023 Apple Inc.
#pragma once
#ifdef __METAL__

View File

@@ -1,3 +1,5 @@
// Copyright © 2023 Apple Inc.
#pragma once
#include <metal_math>

View File

@@ -1,3 +1,5 @@
// Copyright © 2023 Apple Inc.
#include "mlx/backend/metal/kernels/bf16.h"
#include "mlx/backend/metal/kernels/gemm/gemm.h"

View File

@@ -1,3 +1,5 @@
// Copyright © 2023 Apple Inc.
#pragma once
#include <metal_simdgroup>

View File

@@ -1,3 +1,5 @@
// Copyright © 2023 Apple Inc.
#pragma once
#include <metal_simdgroup>

View File

@@ -1,3 +1,5 @@
// Copyright © 2023 Apple Inc.
#include <metal_stdlib>
#include <metal_simdgroup>

View File

@@ -1,3 +1,5 @@
// Copyright © 2023 Apple Inc.
#include <metal_atomic>
#include <metal_texture>

View File

@@ -1,3 +1,5 @@
// Copyright © 2023 Apple Inc.
#include "mlx/backend/metal/kernels/utils.h"
static constexpr constant uint32_t rotations[2][4] = {

View File

@@ -1,3 +1,5 @@
// Copyright © 2023 Apple Inc.
#pragma once
#include <metal_atomic>

View File

@@ -1,3 +1,5 @@
// Copyright © 2023 Apple Inc.
#include <metal_atomic>
#include <metal_simdgroup>

View File

@@ -1,3 +1,5 @@
// Copyright © 2023 Apple Inc.
#include <metal_math>
#include <metal_simdgroup>

View File

@@ -1,3 +1,5 @@
// Copyright © 2023 Apple Inc.
#include <metal_atomic>
#include <metal_common>
#include <metal_simdgroup>

View File

@@ -1,3 +1,5 @@
// Copyright © 2023 Apple Inc.
#include <metal_stdlib>
#include "mlx/backend/metal/kernels/bf16.h"

View File

@@ -1,3 +1,5 @@
// Copyright © 2023 Apple Inc.
#include <metal_integer>
#include <metal_math>

View File

@@ -1,3 +1,5 @@
// Copyright © 2023 Apple Inc.
#pragma once
#include <metal_math>

View File

@@ -1,3 +1,5 @@
// Copyright © 2023 Apple Inc.
#include <algorithm>
#include <cassert>
#include <numeric>

View File

@@ -1,3 +1,5 @@
// Copyright © 2023 Apple Inc.
#include <algorithm>
#include <cassert>
#include <sstream>

View File

@@ -1,3 +1,5 @@
// Copyright © 2023 Apple Inc.
#include <cstdlib>
#include <future>
#include <memory>

View File

@@ -1,3 +1,5 @@
// Copyright © 2023 Apple Inc.
#pragma once
#include <future>

View File

@@ -1,3 +1,5 @@
// Copyright © 2023 Apple Inc.
#pragma once
#include <Metal/Metal.hpp>

View File

@@ -1,3 +1,5 @@
// Copyright © 2023 Apple Inc.
#include <algorithm>
#include <cassert>
#include <numeric>

View File

@@ -1,3 +1,5 @@
// Copyright © 2023 Apple Inc.
#include <algorithm>
#include <cassert>
#include <sstream>

View File

@@ -1,3 +1,5 @@
// Copyright © 2023 Apple Inc.
#include <cassert>
#include <sstream>

View File

@@ -1,3 +1,5 @@
// Copyright © 2023 Apple Inc.
#include <algorithm>
#include "mlx/backend/metal/copy.h"

View File

@@ -1,3 +1,5 @@
// Copyright © 2023 Apple Inc.
#include <algorithm>
#include "mlx/backend/metal/copy.h"

View File

@@ -1,3 +1,5 @@
// Copyright © 2023 Apple Inc.
#pragma once
#include "mlx/array.h"