Download samples/pc_sampling_continuous/Makefile from MNghia/soft_gripper_envs: direct link, hf CLI and curl.
- Browser
- Download file 1.96 kB
-
https://huggingface.co/MNghia/soft_gripper_envs/resolve/main/samples/pc_sampling_continuous/Makefile
- Command line
-
hf download hf://MNghia/soft_gripper_envs/samples/pc_sampling_continuous/Makefile
-
curl -L -o Makefile https://huggingface.co/MNghia/soft_gripper_envs/resolve/main/samples/pc_sampling_continuous/Makefile
1.96 kB
| # | |
| # Copyright 2020-2021 NVIDIA Corporation. All rights reserved | |
| # | |
| ifndef OS | |
| OS := $(shell uname) | |
| HOST_ARCH := $(shell uname -m) | |
| endif | |
| CUDA_INSTALL_PATH ?= ../../../.. | |
| NVCC := "$(CUDA_INSTALL_PATH)/bin/nvcc" | |
| INCLUDES := -I"$(CUDA_INSTALL_PATH)/include" -I../../include | |
| ifeq ($(OS),Windows_NT) | |
| LIB_PATH ?= ..\..\lib64 | |
| else | |
| EXTRAS_LIB_PATH := ../../lib64 | |
| LIB_PATH ?= $(CUDA_INSTALL_PATH)/lib64 | |
| endif | |
| NVCCFLAGS := | |
| ifeq ($(OS),Windows_NT) | |
| export PATH := $(PATH):$(LIB_PATH) | |
| LIBS= -L $(LIB_PATH) -lcuda -lcupti -lpcsamplingutil -ldetours | |
| LIBNAME := pc_sampling_continuous.dll | |
| else | |
| ifeq ($(OS), Darwin) | |
| export DYLD_LIBRARY_PATH := $(DYLD_LIBRARY_PATH):$(LIB_PATH) | |
| LIBS= -Xlinker -framework -Xlinker cuda -L $(EXTRAS_LIB_PATH) -L $(LIB_PATH) -lcupti -lpcsamplingutil | |
| else | |
| export LD_LIBRARY_PATH := $(LD_LIBRARY_PATH):$(LIB_PATH) | |
| LIBS = -L $(LIB_PATH) -lcuda -L $(EXTRAS_LIB_PATH) -lcupti -lpcsamplingutil | |
| endif | |
| LIBNAME := libpc_sampling_continuous.so | |
| NVCCFLAGS += -Xcompiler -fPIC | |
| endif | |
| ifneq ($(TARGET_ARCH), $(HOST_ARCH)) | |
| ifeq ($(TARGET_ARCH), aarch64) | |
| ifeq ($(TARGET_OS), linux) | |
| HOST_COMPILER ?= aarch64-linux-gnu-g++ | |
| else ifeq ($(TARGET_OS),qnx) | |
| ifeq ($(QNX_HOST),) | |
| $(error ERROR - QNX_HOST must be passed to the QNX host toolchain) | |
| endif | |
| ifeq ($(QNX_TARGET),) | |
| $(error ERROR - QNX_TARGET must be passed to the QNX target toolchain) | |
| endif | |
| HOST_COMPILER ?= $(QNX_HOST)/usr/bin/q++ | |
| NVCCFLAGS += --qpp-config 8.3.0,gcc_ntoaarch64le -lsocket | |
| endif | |
| endif | |
| ifdef HOST_COMPILER | |
| NVCC_COMPILER := -ccbin $(HOST_COMPILER) | |
| endif | |
| endif | |
| all: pc_sampling_continuous | |
| pc_sampling_continuous: pc_sampling_continuous.cpp | |
| $(NVCC) $(NVCC_COMPILER) $(NVCCFLAGS) $(INCLUDES) -o $(LIBNAME) -shared $< $(LIBS) | |
| clean: | |
| rm $(LIBNAME) | |