Skip to content

Commit

Permalink
Add license headers
Browse files Browse the repository at this point in the history
  • Loading branch information
rmccorm4 committed Mar 13, 2020
1 parent b65c5de commit 411520a
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 1 deletion.
16 changes: 16 additions & 0 deletions plugins/CustomIPluginV2/CustomPlugin.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
*
* Licensed 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.
*/

#include "CustomPlugin.h"
#include "NvInfer.h"

Expand Down
16 changes: 16 additions & 0 deletions plugins/CustomIPluginV2/CustomPlugin.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
*
* Licensed 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.
*/

#ifndef CUSTOM_PLUGIN_H
#define CUSTOM_PLUGIN_H

Expand Down
16 changes: 15 additions & 1 deletion plugins/CustomIPluginV2/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
#
# Licensed 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.

CUDA_PATH = /usr/local/cuda
TRT_RELEASE = /usr/src/tensorrt
GCC = g++
Expand Down Expand Up @@ -26,7 +40,7 @@ clean:

%.o: %.cu
$(NVCC) $(CCFLAGS) -M -MT $@ $(INCLUDES) -o $(@:.o=.d) $<
$(NVCC) $(CCFLAGS) $(INCLUDES) -Xcompiler -fPIC -arch=sm_30 -o $@ -c $<
$(NVCC) $(CCFLAGS) $(INCLUDES) -Xcompiler -fPIC -o $@ -c $<

$(SO):
$(GCC) $(CCFLAGS) -shared -o $@ $+ $(LDFLAGS)
16 changes: 16 additions & 0 deletions plugins/CustomIPluginV2/test_plugin.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
#!/usr/bin/env python3

# Copyright 2020 NVIDIA Corporation
#
# Licensed 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.

import os
import ctypes
import logging
Expand Down

0 comments on commit 411520a

Please sign in to comment.