Skip to content

Commit b5b5033

Browse files
author
nvidia
committed
add make lib_cuda
1 parent c275784 commit b5b5033

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

MANIFEST.in

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
include src/**
2+
include src/**/**
3+
include src/**/**/**
4+
include include/**
5+
include Makefile

Makefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,14 @@ out:
1111
mkdir out
1212

1313
test:
14-
# ${PYTHON_BIN} tests/test.py
15-
${PYTHON_BIN} tests/test-with-multiprocessing.py
14+
${PYTHON_BIN} tests/test.py
15+
# ${PYTHON_BIN} tests/test-with-multiprocessing.py
1616

1717
pynvjpeg: build/lib/libcolor_space.a
18-
# rm build/lib.linux-aarch64-3.6/nvjpeg.cpython-36m-aarch64-linux-gnu.so -f
1918
${PYTHON_BIN} setup.py build
2019

20+
lib_cuda: build/lib/libcolor_space.a
21+
2122
build/lib/libcolor_space.a: src/jetson/Utils/ColorSpace.cu
2223
mkdir -p build/lib
2324
nvcc -DCUDNN --compiler-options "-fPIC -lstdc++ -pthread -lm" -c src/jetson/Utils/ColorSpace.cu -o build/lib/libcolor_space.a

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
if platform.system() == 'Linux':
1515
if os.path.exists('/usr/src/jetson_multimedia_api'):
1616
# Jetson
17+
os.system('make lib_cuda')
1718
extension_nvjpeg = Extension('nvjpeg',
1819
[
1920
'nvjpeg-python.cpp', 'src/jetson/JpegCoder.cpp',

0 commit comments

Comments
 (0)