Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ ifeq ($(OS),Windows_NT)
exeend := .exe
fpiccuda :=
fpicamd :=
fpicclang :=
plugin_install_path := $(APPDATA)\VapourSynth\plugins64
exe_install_path := $(ProgramFiles)\FFVship.exe
ffvshiplibheader := -I include -lz_imp -lz -lffms2
Expand All @@ -16,6 +17,7 @@ else
exeend :=
fpiccuda := -Xcompiler -fPIC
fpicamd := -fPIC
fpicclang := -fPIC
plugin_install_path := $(DESTDIR)$(PREFIX)/lib/vapoursynth
exe_install_path := $(DESTDIR)$(PREFIX)/bin
ffvshiplibheader := $(shell pkg-config --libs ffms2 zimg)
Expand All @@ -29,6 +31,9 @@ buildFFVSHIP: src/ffmpegmain.cpp .FORCE
buildFFVSHIPcuda: src/ffmpegmain.cpp .FORCE
nvcc -x cu src/ffmpegmain.cpp -std=c++17 -arch=native $(subst -pthread,-Xcompiler="-pthread",$(ffvshiplibheader)) -o FFVship$(exeend)

buildFFVSHIPcudaclang: src/ffmpegmain.cpp .FORCE
clang++ -x cuda src/ffmpegmain.cpp -std=c++17 --cuda-gpu-arch=native -O3 -fcuda-approx-transcendentals -L/usr/local/cuda/lib64 -lcudart $(ffvshiplibheader) -o FFVship$(exeend)

buildFFVSHIPall: src/ffmpegmain.cpp .FORCE
hipcc src/ffmpegmain.cpp -std=c++17 --offload-arch=gfx1100,gfx1101,gfx1102,gfx1103,gfx1030,gfx1031,gfx1032,gfx906,gfx801,gfx802,gfx803 -Wno-unused-result -Wno-ignored-attributes $(ffvshiplibheader) -o FFVship$(exeend)

Expand All @@ -41,6 +46,9 @@ build: src/vapoursynthPlugin.cpp .FORCE
buildcuda: src/vapoursynthPlugin.cpp .FORCE
nvcc -x cu src/vapoursynthPlugin.cpp -std=c++17 -arch=native -I "$(current_dir)include" -shared $(fpiccuda) -o "$(current_dir)vship$(dllend)"

buildcudaclang: src/vapoursynthPlugin.cpp .FORCE
clang++ -x cuda src/vapoursynthPlugin.cpp -std=c++17 --cuda-gpu-arch=native -O3 -fcuda-approx-transcendentals -I "$(current_dir)include" -shared $(fpicclang) -o "$(current_dir)vship$(dllend)"

buildcudaall: src/vapoursynthPlugin.cpp .FORCE
nvcc -x cu src/vapoursynthPlugin.cpp -std=c++17 -arch=all -I "$(current_dir)include" -shared $(fpiccuda) -o "$(current_dir)vship$(dllend)"

Expand Down