Skip to content

Commit 03309a2

Browse files
committed
Changelog updates
1 parent 5688ee0 commit 03309a2

File tree

999 files changed

+5254
-1366
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

999 files changed

+5254
-1366
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
## Changelog
22

3+
### CUDA 12.1
4+
* libNVVM samples received updates
5+
* Fixed jitLto Case issues
6+
* Enabled HOST_COMPILER flag to the makefiles for GCC which is untested but may still work.
7+
38
### CUDA 12.1
49
* Added new sample for Large Kernels
510

README.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,20 @@
11
# CUDA Samples
22

3-
Samples for CUDA Developers which demonstrates features in CUDA Toolkit. This version supports [CUDA Toolkit 12.1](https://developer.nvidia.com/cuda-downloads).
3+
Samples for CUDA Developers which demonstrates features in CUDA Toolkit. This version supports [CUDA Toolkit 12.2](https://developer.nvidia.com/cuda-downloads).
44

55
## Release Notes
66

77
This section describes the release notes for the CUDA Samples on GitHub only.
88

9-
### CUDA 12.1
10-
* Added JIT LTO Sample
11-
* Adding Large Kernel Sample
9+
### CUDA 12.2
1210

1311
### [older versions...](./CHANGELOG.md)
1412

1513
## Getting Started
1614

1715
### Prerequisites
1816

19-
Download and install the [CUDA Toolkit 12.1](https://developer.nvidia.com/cuda-downloads) for your corresponding platform.
17+
Download and install the [CUDA Toolkit 12.2](https://developer.nvidia.com/cuda-downloads) for your corresponding platform.
2018
For system requirements and installation instructions of cuda toolkit, please refer to the [Linux Installation Guide](http://docs.nvidia.com/cuda/cuda-installation-guide-linux/), and the [Windows Installation Guide](http://docs.nvidia.com/cuda/cuda-installation-guide-microsoft-windows/index.html).
2119

2220
### Getting the CUDA Samples
@@ -91,6 +89,9 @@ Samples that are specific to domain (Graphics, Finance, Image Processing).
9189
### [6. Performance](./Samples/6_Performance/README.md)
9290
Samples that demonstrate performance optimization.
9391
92+
### [7. libNVVM](./Samples/7_libNVVM/README.md)
93+
Samples that demonstrate the use of libNVVVM and NVVM IR.
94+
9495
## Dependencies
9596
9697
Some CUDA Samples rely on third-party applications and/or libraries, or features provided by the CUDA Toolkit and Driver, to either build or execute. These dependencies are listed below.
@@ -245,6 +246,10 @@ FP16 is a 16-bit floating-point format. One bit is used for the sign, five bits
245246
246247
NVCC support of [C++11 features](https://en.wikipedia.org/wiki/C++11).
247248
249+
#### CMake
250+
251+
The libNVVM samples are built using [CMake](https://cmake.org/) 3.10 or later.
252+
248253
## Contributors Guide
249254
250255
We welcome your input on issues and suggestions for samples. At this time we are not accepting contributions from the public, check back here as we evolve our contribution model.

Samples/0_Introduction/UnifiedMemoryStreams/Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,10 @@ ifeq (,$(filter $(TARGET_OS),linux darwin qnx android))
113113
endif
114114

115115
# host compiler
116+
ifdef HOST_COMPILER
117+
CUSTOM_HOST_COMPILER = 1
118+
endif
119+
116120
ifeq ($(TARGET_OS),darwin)
117121
ifeq ($(shell expr `xcodebuild -version | grep -i xcode | awk '{print $$2}' | cut -d'.' -f1` \>= 5),1)
118122
HOST_COMPILER ?= clang++

Samples/0_Introduction/UnifiedMemoryStreams/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ cudaStreamDestroy, cudaFree, cudaMallocManaged, cudaStreamAttachMemAsync, cudaSe
2828

2929
## Prerequisites
3030

31-
Download and install the [CUDA Toolkit 12.1](https://developer.nvidia.com/cuda-downloads) for your corresponding platform.
31+
Download and install the [CUDA Toolkit 12.2](https://developer.nvidia.com/cuda-downloads) for your corresponding platform.
3232
Make sure the dependencies mentioned in [Dependencies]() section above are installed.
3333

3434
## Build and Run

Samples/0_Introduction/UnifiedMemoryStreams/UnifiedMemoryStreams_vs2017.vcxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
</PropertyGroup>
3939
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
4040
<ImportGroup Label="ExtensionSettings">
41-
<Import Project="$(CUDAPropsPath)\CUDA 12.1.props" />
41+
<Import Project="$(CUDAPropsPath)\CUDA 12.2.props" />
4242
</ImportGroup>
4343
<ImportGroup Label="PropertySheets">
4444
<Import Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" />
@@ -108,6 +108,6 @@
108108
</ItemGroup>
109109
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
110110
<ImportGroup Label="ExtensionTargets">
111-
<Import Project="$(CUDAPropsPath)\CUDA 12.1.targets" />
111+
<Import Project="$(CUDAPropsPath)\CUDA 12.2.targets" />
112112
</ImportGroup>
113113
</Project>

Samples/0_Introduction/UnifiedMemoryStreams/UnifiedMemoryStreams_vs2019.vcxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
</PropertyGroup>
3535
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
3636
<ImportGroup Label="ExtensionSettings">
37-
<Import Project="$(CUDAPropsPath)\CUDA 12.1.props" />
37+
<Import Project="$(CUDAPropsPath)\CUDA 12.2.props" />
3838
</ImportGroup>
3939
<ImportGroup Label="PropertySheets">
4040
<Import Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" />
@@ -104,6 +104,6 @@
104104
</ItemGroup>
105105
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
106106
<ImportGroup Label="ExtensionTargets">
107-
<Import Project="$(CUDAPropsPath)\CUDA 12.1.targets" />
107+
<Import Project="$(CUDAPropsPath)\CUDA 12.2.targets" />
108108
</ImportGroup>
109109
</Project>

Samples/0_Introduction/UnifiedMemoryStreams/UnifiedMemoryStreams_vs2022.vcxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
</PropertyGroup>
3535
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
3636
<ImportGroup Label="ExtensionSettings">
37-
<Import Project="$(CUDAPropsPath)\CUDA 12.1.props" />
37+
<Import Project="$(CUDAPropsPath)\CUDA 12.2.props" />
3838
</ImportGroup>
3939
<ImportGroup Label="PropertySheets">
4040
<Import Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" />
@@ -104,6 +104,6 @@
104104
</ItemGroup>
105105
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
106106
<ImportGroup Label="ExtensionTargets">
107-
<Import Project="$(CUDAPropsPath)\CUDA 12.1.targets" />
107+
<Import Project="$(CUDAPropsPath)\CUDA 12.2.targets" />
108108
</ImportGroup>
109109
</Project>

Samples/0_Introduction/asyncAPI/Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,10 @@ ifeq (,$(filter $(TARGET_OS),linux darwin qnx android))
113113
endif
114114

115115
# host compiler
116+
ifdef HOST_COMPILER
117+
CUSTOM_HOST_COMPILER = 1
118+
endif
119+
116120
ifeq ($(TARGET_OS),darwin)
117121
ifeq ($(shell expr `xcodebuild -version | grep -i xcode | awk '{print $$2}' | cut -d'.' -f1` \>= 5),1)
118122
HOST_COMPILER ?= clang++

Samples/0_Introduction/asyncAPI/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ cudaProfilerStop, cudaMalloc, cudaMemcpyAsync, cudaFree, cudaMallocHost, cudaPro
2727

2828
## Prerequisites
2929

30-
Download and install the [CUDA Toolkit 12.1](https://developer.nvidia.com/cuda-downloads) for your corresponding platform.
30+
Download and install the [CUDA Toolkit 12.2](https://developer.nvidia.com/cuda-downloads) for your corresponding platform.
3131

3232
## Build and Run
3333

Samples/0_Introduction/asyncAPI/asyncAPI_vs2017.vcxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
</PropertyGroup>
3939
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
4040
<ImportGroup Label="ExtensionSettings">
41-
<Import Project="$(CUDAPropsPath)\CUDA 12.1.props" />
41+
<Import Project="$(CUDAPropsPath)\CUDA 12.2.props" />
4242
</ImportGroup>
4343
<ImportGroup Label="PropertySheets">
4444
<Import Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" />
@@ -107,6 +107,6 @@
107107
</ItemGroup>
108108
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
109109
<ImportGroup Label="ExtensionTargets">
110-
<Import Project="$(CUDAPropsPath)\CUDA 12.1.targets" />
110+
<Import Project="$(CUDAPropsPath)\CUDA 12.2.targets" />
111111
</ImportGroup>
112112
</Project>

0 commit comments

Comments
 (0)