Skip to content

Commit

Permalink
Update LICENSE file and headers of source files.
Browse files Browse the repository at this point in the history
  • Loading branch information
nudles committed Jan 10, 2016
1 parent 24a1be9 commit 198a049
Show file tree
Hide file tree
Showing 11 changed files with 70 additions and 234 deletions.
19 changes: 14 additions & 5 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -206,16 +206,17 @@ subcomponents is subject to the terms and conditions of the following
licenses.

============================================================================
SINGA bundles the following under BSD 2-clause license: include/utils/blob.h,
src/utils/blob.cc, include/utils/common.h, src/utils/common.cc
SINGA bundles the following under BSD 2-clause license: include/singa/utils/blob.h,
src/utils/blob.cc, include/singa/utils/common.h, src/utils/common.cc, include/singa/utils/cuda_utils.h

Copyright (c) 2014, 2015, The Regents of the University of California (Regents)
Copyright (c) 2014, the respective contributors
https://github.com/BVLC/caffe/blob/master/LICENSE

=====================================================================
SINGA bundles the following under BSD 2-clause license: include/utils/tinydir.h
SINGA bundles the following under BSD 2-clause license: include/singa/utils/tinydir.h

Copyright (c) 2013, Cong Xu
Copyright (c) 2013, Cong Xu, Baudouin Feildel
https://github.com/cxong/tinydir/blob/master/COPYING

=====================================================================
Expand All @@ -231,7 +232,15 @@ Copyright 2008, Google Inc.
https://code.google.com/p/googletest/source/browse/trunk/LICENSE

=====================================================================
SINGA bundles the following under New BSD license: tool/cppling.py
SINGA bundles the following under New BSD license: tool/cpplint.py

Copyright (c) 2009 Google Inc. All rights reserved.
https://github.com/google/styleguide/tree/gh-pages/cpplint

=====================================================================
SINGA bundles the following under New BSD license: examples/rnnlm/create_data.cc

Copyright (c) 2010-2012 Tomas Mikolov
Copyright (c) 2013 Cantab Research Ltd
All rights reserved.
http://www.fit.vutbr.cz/~imikolov/rnnlm/
21 changes: 0 additions & 21 deletions Makefile.am
Original file line number Diff line number Diff line change
@@ -1,24 +1,3 @@
#/************************************************************
#*
#* Licensed to the Apache Software Foundation (ASF) under one
#* or more contributor license agreements. See the NOTICE file
#* distributed with this work for additional information
#* regarding copyright ownership. The ASF licenses this file
#* to you under the Apache License, Version 2.0 (the
#* "License"); you may not use this file except in compliance
#* with the License. You may obtain a copy of the License at
#*
#* http://www.apache.org/licenses/LICENSE-2.0
#*
#* Unless required by applicable law or agreed to in writing,
#* software distributed under the License is distributed on an
#* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
#* KIND, either express or implied. See the License for the
#* specific language governing permissions and limitations
#* under the License.
#*
#*************************************************************/

ACLOCAL_AMFLAGS = -I config
AUTOMAKE_OPTIONS = foreign subdir-objects

Expand Down
11 changes: 1 addition & 10 deletions NOTICE
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,4 @@ Copyright 2015 The Apache Software Foundation
This product includes software developed at
The Apache Software Foundation (http://www.apache.org/).

Portions of this software were developed at the National University of
Singapore.

This software contains codes from the other projects: Caffe (https://github.com/BVLC/caffe), tinydir
(https://github.com/cxong/tinydir), mshadow (https://github.com/dmlc/mshadow) and gtest
(https://code.google.com/p/googletest/).

The software uses external libraries including czmq, glog, google protobuf, OpenCV and Openblas.

The software also has optional dependencies for advanced features, including cuda, cudnn, libhdf3, HDFS, Apache Mesos.
Portions of this software were developed at the National University of Singapore.
42 changes: 7 additions & 35 deletions examples/rnnlm/create_data.cc
Original file line number Diff line number Diff line change
@@ -1,38 +1,3 @@
/*
* This file include code from rnnlmlib-0.4 whose licence is as follows:
Copyright (c) 2010-2012 Tomas Mikolov
Copyright (c) 2013 Cantab Research Ltd
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. 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.
3. Neither name of copyright holders 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 REGENTS 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.
*/

/************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
Expand All @@ -53,6 +18,13 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
* under the License.
*
*************************************************************/
/*
* This file include code from rnnlmlib-0.4 under BSD new license.
* Copyright (c) 2010-2012 Tomas Mikolov
* Copyright (c) 2013 Cantab Research Ltd
* All rights reserved.
*/


//
// This code creates DataShard for RNNLM dataset.
Expand Down
32 changes: 1 addition & 31 deletions include/singa/utils/blob.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,44 +20,14 @@
*************************************************************/

/**
* The code is adapted from that of Caffe whose license is attached.
*
* The code is adapted from that of Caffe which is under BSD 2 Clause License.
* COPYRIGHT
* All contributions by the University of California:
* Copyright (c) 2014, The Regents of the University of California (Regents)
* All rights reserved.
* All other contributions:
* Copyright (c) 2014, the respective contributors
* All rights reserved.
* Caffe uses a shared copyright model: each contributor holds copyright over
* their contributions to Caffe. The project versioning records all such
* contribution and copyright details. If a contributor wants to further mark
* their specific copyright on a particular contribution, they should indicate
* their copyright solely in the commit message of the change when it is
* committed.
* LICENSE
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* 1. Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
* 2. 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.
* 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 OWNER 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.
* CONTRIBUTION AGREEMENT
* By contributing to the BVLC/caffe repository through pull-request, comment,
* or otherwise, the contributor releases their content to the
* license and copyright terms herein.
*
*/
#ifndef SINGA_UTILS_BLOB_H_
#define SINGA_UTILS_BLOB_H_
Expand Down
77 changes: 0 additions & 77 deletions include/singa/utils/cuda_utils.h

This file was deleted.

2 changes: 2 additions & 0 deletions include/singa/utils/math_blob.h
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,8 @@ void Copy(const Blob<Dtype>& A, Blob<Dtype>* B) {
#ifdef USE_GPU
CUDA_CHECK(cudaMemcpy(static_cast<Dtype*>(B->mutable_gpu_data()),
A.gpu_data(), sizeof(Dtype) * A.count(), cudaMemcpyDefault));
#else
LOG(FATAL) << "Not implemented";
#endif
}
}
Expand Down
30 changes: 1 addition & 29 deletions src/utils/blob.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*************************************************************/

/**
* The code is adapted from Caffe whose license is attached.
* The code is adapted from Caffe under BSD 2 Clause license.
*
* COPYRIGHT
* All contributions by the University of California:
Expand All @@ -29,34 +29,6 @@
* All other contributions:
* Copyright (c) 2014, the respective contributors
* All rights reserved.
* Caffe uses a shared copyright model: each contributor holds copyright over
* their contributions to Caffe. The project versioning records all such
* contribution and copyright details. If a contributor wants to further mark
* their specific copyright on a particular contribution, they should indicate
* their copyright solely in the commit message of the change when it is
* committed.
* LICENSE
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* 1. Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
* 2. 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.
* 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 OWNER 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.
* CONTRIBUTION AGREEMENT
* By contributing to the BVLC/caffe repository through pull-request, comment,
* or otherwise, the contributor releases their content to the
* license and copyright terms herein.
*/
#include "singa/utils/blob.h"

Expand Down
26 changes: 0 additions & 26 deletions src/utils/common.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@
*************************************************************/

/**
* The some functions in this file are adapted from Caffe whose license
* is attached.
*
* COPYRIGHT
* All contributions by the University of California:
* Copyright (c) 2014, The Regents of the University of California (Regents)
* All rights reserved.
Expand All @@ -36,28 +32,6 @@
* their specific copyright on a particular contribution, they should indicate
* their copyright solely in the commit message of the change when it is
* committed.
* LICENSE
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* 1. Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
* 2. 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.
* 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 OWNER 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.
* CONTRIBUTION AGREEMENT
* By contributing to the BVLC/caffe repository through pull-request, comment,
* or otherwise, the contributor releases their content to the
* license and copyright terms herein.
*/

#include "singa/utils/common.h"
Expand Down
22 changes: 22 additions & 0 deletions tool/python/singa/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*************************************************************/


22 changes: 22 additions & 0 deletions tool/python/singa/utils/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*************************************************************/


0 comments on commit 198a049

Please sign in to comment.