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

30
ACKNOWLEDGMENTS.md Normal file
View file

@ -0,0 +1,30 @@
MLX leverages several third-party software, listed here together with
their license copied verbatim.
## PocketFFT
Copyright (C) 2010-2018 Max-Planck-Society
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice, this
list of conditions and the following disclaimer in the documentation and/or
other materials provided with the distribution.
* Neither the name of the copyright holder nor the names of its contributors may
be used to endorse or promote products derived from this software without
specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

View file

@ -1,6 +1,6 @@
MIT License
Copyright (c) 2023 ml-explore
Copyright © 2023 Apple Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal

View file

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

View file

@ -1,3 +1,5 @@
// Copyright © 2023 Apple Inc.
#include <iostream>
#include "mlx/mlx.h"
#include "time_utils.h"

View file

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

View file

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

View file

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

View file

@ -1,3 +1,5 @@
# Copyright © 2023 Apple Inc.
import numpy as np
from time_utils import time_fn

View file

@ -1,3 +1,5 @@
# Copyright © 2023 Apple Inc.
import time

View file

@ -1,3 +1,5 @@
# Copyright © 2023 Apple Inc.
import argparse
import mlx.core as mx

View file

@ -1,3 +1,5 @@
# Copyright © 2023 Apple Inc.
import numpy as np
import argparse
import mlx.core as mx

View file

@ -1,3 +1,5 @@
# Copyright © 2023 Apple Inc.
import matplotlib.pyplot as plt
import numpy as np
import argparse

View file

@ -1,3 +1,5 @@
# Copyright © 2023 Apple Inc.
import argparse
import math
import os

View file

@ -1,3 +1,5 @@
# Copyright © 2023 Apple Inc.
import argparse
import os
import time

View file

@ -1,3 +1,5 @@
# Copyright © 2023 Apple Inc.
#!/usr/bin/env python
import argparse

View file

@ -1,3 +1,5 @@
# Copyright © 2023 Apple Inc.
import math
import time

View file

@ -1,3 +1,5 @@
# Copyright © 2023 Apple Inc.
import math
import time

View file

@ -1,3 +1,5 @@
# Copyright © 2023 Apple Inc.
import math
import time

View file

@ -1,3 +1,5 @@
# Copyright © 2023 Apple Inc.
import argparse
import mlx.core as mx

View file

@ -1,3 +1,5 @@
# Copyright © 2023 Apple Inc.
import time
import mlx.core as mx

View file

@ -1,3 +1,5 @@
# Copyright © 2023 Apple Inc.
# -*- coding: utf-8 -*-
import os

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

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 <pybind11/pybind11.h>
#include <pybind11/stl.h>

View file

@ -1,2 +1,4 @@
# Copyright © 2023 Apple Inc.
import mlx.core as mx
from .mlx_sample_extensions import *

View file

@ -1,3 +1,5 @@
# Copyright © 2023 Apple Inc.
from mlx import extension
from setuptools import setup

View file

@ -1,3 +1,5 @@
# Copyright © 2023 Apple Inc.
import mlx.core as mx
import time

View file

@ -1,3 +1,5 @@
# Copyright © 2023 Apple Inc.
import mlx.core as mx
import time

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,3 +1,5 @@
// Copyright © 2023 Apple Inc.
#include <cassert>
#include <vecLib/BNNS/bnns.h>

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,3 +1,5 @@
// Copyright © 2023 Apple Inc.
#include <cassert>
#include "mlx/primitives.h"

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,3 +1,5 @@
// Copyright © 2023 Apple Inc.
#include <cmath>
namespace mlx::core {

View file

@ -1,3 +1,5 @@
// Copyright © 2023 Apple Inc.
namespace mlx::core {

View file

@ -1,3 +1,5 @@
// Copyright © 2023 Apple Inc.
#include <numeric>
#include "mlx/3rdparty/pocketfft.h"

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

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>

Some files were not shown because too many files have changed in this diff Show more