This repository was archived by the owner on Mar 14, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +63
-1
lines changed
Expand file tree Collapse file tree 4 files changed +63
-1
lines changed Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
3+ *
4+ * Licensed under the Apache License, Version 2.0 (the "License");
5+ * you may not use this file except in compliance with the License.
6+ * You may obtain a copy of the License at
7+ *
8+ * http://www.apache.org/licenses/LICENSE-2.0
9+ *
10+ * Unless required by applicable law or agreed to in writing, software
11+ * distributed under the License is distributed on an "AS IS" BASIS,
12+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ * See the License for the specific language governing permissions and
14+ * limitations under the License.
15+ */
16+
117#include " CustomPlugin.h"
218#include " NvInfer.h"
319
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
3+ *
4+ * Licensed under the Apache License, Version 2.0 (the "License");
5+ * you may not use this file except in compliance with the License.
6+ * You may obtain a copy of the License at
7+ *
8+ * http://www.apache.org/licenses/LICENSE-2.0
9+ *
10+ * Unless required by applicable law or agreed to in writing, software
11+ * distributed under the License is distributed on an "AS IS" BASIS,
12+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ * See the License for the specific language governing permissions and
14+ * limitations under the License.
15+ */
16+
117#ifndef CUSTOM_PLUGIN_H
218#define CUSTOM_PLUGIN_H
319
Original file line number Diff line number Diff line change 1+ # Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
2+ #
3+ # Licensed under the Apache License, Version 2.0 (the "License");
4+ # you may not use this file except in compliance with the License.
5+ # You may obtain a copy of the License at
6+ #
7+ # http://www.apache.org/licenses/LICENSE-2.0
8+ #
9+ # Unless required by applicable law or agreed to in writing, software
10+ # distributed under the License is distributed on an "AS IS" BASIS,
11+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+ # See the License for the specific language governing permissions and
13+ # limitations under the License.
14+
115CUDA_PATH = /usr/local/cuda
216TRT_RELEASE = /usr/src/tensorrt
317GCC = g++
2640
2741% .o : % .cu
2842 $(NVCC ) $(CCFLAGS ) -M -MT $@ $(INCLUDES ) -o $(@:.o=.d ) $<
29- $(NVCC ) $(CCFLAGS ) $(INCLUDES ) -Xcompiler -fPIC -arch=sm_30 - o $@ -c $<
43+ $(NVCC ) $(CCFLAGS ) $(INCLUDES ) -Xcompiler -fPIC -o $@ -c $<
3044
3145$(SO ) :
3246 $(GCC ) $(CCFLAGS ) -shared -o $@ $+ $(LDFLAGS )
Original file line number Diff line number Diff line change 1+ #!/usr/bin/env python3
2+
3+ # Copyright 2020 NVIDIA Corporation
4+ #
5+ # Licensed under the Apache License, Version 2.0 (the "License");
6+ # you may not use this file except in compliance with the License.
7+ # You may obtain a copy of the License at
8+ #
9+ # http://www.apache.org/licenses/LICENSE-2.0
10+ #
11+ # Unless required by applicable law or agreed to in writing, software
12+ # distributed under the License is distributed on an "AS IS" BASIS,
13+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+ # See the License for the specific language governing permissions and
15+ # limitations under the License.
16+
117import os
218import ctypes
319import logging
You can’t perform that action at this time.
0 commit comments