-- Update README.md with changes for repo link and other updates

-- remove MDCG support on windows
-- integrate fixes to nvrtc samples makefile and driver api samples makefiles
This commit is contained in:
mdoijade
2018-04-11 00:09:13 +05:30
parent 90632045e3
commit 0bce11f7a5
5 changed files with 32 additions and 42 deletions

View File

@@ -58,9 +58,6 @@
<arch>ppc64le</arch>
<platform>linux</platform>
</env>
<env>
<platform>windows</platform>
</env>
</supported_envs>
<supported_sm_architectures>
<from>6.0</from>

View File

@@ -14,7 +14,7 @@ Unified Memory, Linear Algebra, Cooperative Groups, MultiDevice Cooperative Grou
## Supported OSes
Linux, Windows
Linux
## Supported CPU Architecture
@@ -35,16 +35,6 @@ Make sure the dependencies mentioned in [Dependencies]() section above are insta
## Build and Run
### Windows
The Windows samples are built using the Visual Studio IDE. Solution files (.sln) are provided for each supported version of Visual Studio, using the format:
```
*_vs<version>.sln - for Visual Studio <version>
```
Each individual sample has its own set of solution files in its directory:
To build/examine all the samples at once, the complete solution files should be used. To build/examine a single sample, the individual sample solution files should be used.
> **Note:** Some samples require that the Microsoft DirectX SDK (June 2010 or newer) be installed and that the VC++ directory paths are properly set up (**Tools > Options...**). Check DirectX Dependencies section for details."
### Linux
The Linux samples are built using makefiles. To use the makefiles, change the current directory to the sample directory you wish to build, and run make:
```

View File

@@ -310,9 +310,10 @@ else
ifeq ("$(CUDALIB)","")
$(info >>> WARNING - libcuda.so not found, CUDA Driver is not installed. Please re-install the driver. <<<)
SAMPLE_ENABLED := 0
else
CUDALIB := $(shell echo $(CUDALIB) | sed "s/ .*//" | sed "s/\/libcuda.so//" )
LIBRARIES += -L$(CUDALIB) -lcuda
endif
LIBRARIES += -lcuda
endif
ifeq ($(SAMPLE_ENABLED),0)

View File

@@ -257,11 +257,7 @@ LIBRARIES :=
# libNVRTC specific libraries
ifeq ($(TARGET_OS),darwin)
LDFLAGS += -L$(CUDA_PATH)/lib -framework CUDA
else ifeq ($(TARGET_ARCH),x86_64)
LDFLAGS += -L$(CUDA_PATH)/lib64/stubs -L$(CUDA_PATH)/lib64
else ifeq ($(TARGET_ARCH),ppc64le)
LDFLAGS += -L$(CUDA_PATH)/targets/ppc64le-linux/lib/stubs -L$(CUDA_PATH)/targets/ppc64le-linux/lib
LDFLAGS += -L$(CUDA_PATH)/lib -F/Library/Frameworks -framework CUDA
endif
ifeq ($(TARGET_OS),darwin)
@@ -304,9 +300,10 @@ else
ifeq ("$(CUDALIB)","")
$(info >>> WARNING - libcuda.so not found, CUDA Driver is not installed. Please re-install the driver. <<<)
SAMPLE_ENABLED := 0
else
CUDALIB := $(shell echo $(CUDALIB) | sed "s/ .*//" | sed "s/\/libcuda.so//" )
LIBRARIES += -L$(CUDALIB) -lcuda
endif
LIBRARIES += -lcuda
endif
INCLUDES += -I$(CUDA_PATH)/include