Skip to content

Commit 1433105

Browse files
committed
README.md: hint to set CUDA arch
+ set --config to --build - needed for multigenerators like MSbuild to actually build Release target
1 parent b5725be commit 1433105

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,8 @@ To build console application check [Requirements](#requirements) and go
176176
to `gpujpeg` directory (where [README.md](README.md) and [COPYING](COPYING)
177177
files are placed) and run `cmake` command:
178178

179-
cmake -DCMAKE_BUILD_TYPE=Release -Bbuild .
180-
cmake --build build
179+
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CUDA_ARCHITECTURES=native -Bbuild .
180+
cmake --build build --config Release
181181

182182
You can also use **autotools** to create a build recipe for the library and the
183183
application or a plain old _Makefile.bkp_. However, _cmake_ is recommended.

0 commit comments

Comments
 (0)