Skip to content

Commit

Permalink
[refactor] prepend copyright license to source codes
Browse files Browse the repository at this point in the history
  • Loading branch information
whchung committed May 30, 2014
1 parent f3369ca commit 583e135
Show file tree
Hide file tree
Showing 12 changed files with 104 additions and 11 deletions.
5 changes: 2 additions & 3 deletions EraseNonkernel/EraseNonkernel.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===- Hello.cpp - Example code from "Writing an LLVM Pass" ---------------===//
//===- EraseNonkernel.cpp - Remove non-GPU codes from LLVM IR -------------===//
//
// The LLVM Compiler Infrastructure
//
Expand All @@ -7,8 +7,7 @@
//
//===----------------------------------------------------------------------===//
//
// This file implements two versions of the LLVM "Hello World" pass described
// in docs/WritingAnLLVMPass.html
// This file implements a pass which removes non-GPU codes from LLVM IR.
//
//===----------------------------------------------------------------------===//

Expand Down
35 changes: 35 additions & 0 deletions LICENSE.TXT
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
Copyright (c) MulticoreWare, Inc.
Copyright (c) Advanced Micro Devices, Inc.
Copyright (c) Microsoft Corporation.
All rights reserved.

University of Illinois/NCSA Open Source License

Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the
"Software"), to deal with the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimers.

Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following disclaimers
in the documentation and/or other materials provided with the
distribution.

Neither the names of MulticoreWare Inc., Advanced Micro Devices, Inc.,
Microsoft Corporation, nor the names of its contributors may be used to
endorse or promote products derived from this Software without specific prior
written permission.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR
ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE SOFTWARE.
6 changes: 3 additions & 3 deletions SPIRify/Promote.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===- Hello.cpp - Example code from "Writing an LLVM Pass" ---------------===//
//===- Promote.cpp - Lift LLVM IR to SPIR-compatible ----- ----------------===//
//
// The LLVM Compiler Infrastructure
//
Expand All @@ -7,8 +7,8 @@
//
//===----------------------------------------------------------------------===//
//
// This file implements two versions of the LLVM "Hello World" pass described
// in docs/WritingAnLLVMPass.html
// This file implements a pass to promote variables to correct addrspace to
// adhere SPIR specification.
//
//===----------------------------------------------------------------------===//

Expand Down
7 changes: 7 additions & 0 deletions include/amp.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
//===----------------------------------------------------------------------===//
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//

// CAVEATS: There could be walkarounds for quick evaluation purposes. Here we
// list such features that are used in the code with description.
//
Expand Down
9 changes: 8 additions & 1 deletion include/amp_impl.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
//===----------------------------------------------------------------------===//
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//

#ifndef INCLUDE_AMP_IMPL_H
#define INCLUDE_AMP_IMPL_H

Expand Down Expand Up @@ -42,7 +49,7 @@ inline accelerator::accelerator(const accelerator& other) :
#endif
{}

// TODO(I-Jui Sung): perform real OpenCL queries here..
// TODO: perform real OpenCL queries here..
inline accelerator::accelerator(const std::wstring& path) :
device_path( (path != std::wstring(default_accelerator)) ?
path :
Expand Down
7 changes: 7 additions & 0 deletions include/amp_math.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
//===----------------------------------------------------------------------===//
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//

#pragma once
#include <cmath>
#ifdef __GPU__
Expand Down
7 changes: 7 additions & 0 deletions include/gmac_manage.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
//===----------------------------------------------------------------------===//
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//

#include<type_traits>
#pragma once

Expand Down
7 changes: 7 additions & 0 deletions include/okra_manage.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
//===----------------------------------------------------------------------===//
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//

#include<type_traits>
#pragma once
#include <malloc.h>
Expand Down
11 changes: 7 additions & 4 deletions include/parallel_for_each.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
//===----------------------------------------------------------------------===//
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//

#pragma once
// My quick and dirty implementation of amp.h
// To use: put a gmac_array object (not pointer or reference!)
// in your functor and use it in your kernel as if it is an array_view
// object
#include <cassert>
#include <amp.h>

Expand Down
7 changes: 7 additions & 0 deletions include/serialize.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
//===----------------------------------------------------------------------===//
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//

#pragma once

namespace Concurrency {
Expand Down
7 changes: 7 additions & 0 deletions lib/mcwamp.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
//===----------------------------------------------------------------------===//
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//

#include <amp.h>
#include <map>
namespace Concurrency {
Expand Down
7 changes: 7 additions & 0 deletions lib/mcwamp_main.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
//===----------------------------------------------------------------------===//
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//

#include <stdio.h>
#include <stdlib.h>
#include <getopt.h>
Expand Down

0 comments on commit 583e135

Please sign in to comment.