Skip to content

Commit

Permalink
add licenses to new files
Browse files Browse the repository at this point in the history
  • Loading branch information
bgrady-tt committed Jan 30, 2025
1 parent 8b82721 commit b29f36e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
3 changes: 3 additions & 0 deletions tt_npe/cpp/include/npeChart.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: © 2025 Tenstorrent AI ULC

#include <fmt/core.h>
#include <concepts>

Expand Down
3 changes: 3 additions & 0 deletions tt_npe/cpp/src/npeStats.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: © 2025 Tenstorrent AI ULC

#include "npeStats.hpp"

#include <fstream>
Expand Down
8 changes: 4 additions & 4 deletions tt_npe/scripts/add_license.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
read -r -d '' LICTEXT << 'END'
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: © 2025 Tenstorrent AI ULC
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: © 2025 Tenstorrent AI ULC
END

for f in `find -name '*.*py'`; do
for f in $@; do
printf "$LICTEXT\n\n" > tmp
cat $f >> tmp
echo $f
#diff tmp $f
diff tmp $f
mv tmp $f
done

0 comments on commit b29f36e

Please sign in to comment.