Commit graph

10 commits

Author SHA1 Message Date
Matt Pharr
accfbcba62 Attempt to enable compute 5.2 for NVIDIA GPU support
Issue #292.
2022-08-31 15:57:58 -07:00
luz paz
2fcf2e9864 Fix misc. typos
Found via `codespell -q 3 -S ./src/ext`
2021-05-20 15:20:39 -04:00
Pierre Moreau
e1ebc7218a
Restrict accepted OpenEXR version (#119)
* CMake: Validate the version of the system OpenEXR

Let CMake validate that the version of the OpenEXR library we found
satisfies what was specified when calling `find_package(OpenEXR)`, for
example if a minimum or exact version were required.

* CMake: Restrict system OpenEXR versions to 2.3+

Versions prior to 2.3 are not compatible with C++17, due to for example
using the `register` storage class specifier or dynamic exception
specifications via the `throw` keyword.

Fixes regression introduced in cb2e8ae397
for systems with OpenEXR <2.3.

Fixes #117.
2021-04-01 09:31:04 -07:00
Matt Pharr
cb2e8ae397 Use system-provided OpenEXR, if available 2021-01-22 13:15:20 -08:00
Alex Purdy
f5253a36f5 Fix compute capability calculation in cudacheck 2020-12-03 16:38:16 -08:00
Pierre Moreau
6446512c3d Rework the compilation to PTX and embedding
Since we have a CMake target, we can do scoped include directories.
Remove duplicate compile flags, and also add compile definitions which
enables PBRT to compile on Windows for Pascal-architecture cards.

Compared to commit a685e0205e, this also

* changes the dependency to be directly on the library rather than some
  of its object file;
* adds a missing dependency on several generated header files;
* avoids passing `/D _CRT_SECURE_NO_WARNINGS` to nvcc;
* removes compiler flags that are part of the regular CUDA flags.
2020-10-08 13:36:49 +02:00
Matt Pharr
ec742b2cc9 Revert "Rework the compilation to PTX and embedding"
This reverts commit a685e0205e, which seems
to have caused issue #56 (the Ubuntu part at least.)
2020-10-07 13:12:33 -07:00
Matt Pharr
8be259fe5a Improve GPU SM version checking.
Require SM 5.3 and up (half floats...)
Print a more useful error when the GPU's shader model is insufficient.
2020-09-23 11:12:23 -07:00
Pierre Moreau
a685e0205e Rework the compilation to PTX and embedding
Since we have a CMake target, we can do scoped include directories.
Remove duplicate compile flags, and also add compile definitions which
enables PBRT to compile on Windows for Pascal-architecture cards.

Fixes #27
2020-09-04 11:49:13 -07:00
Matt Pharr
9772673e43 Initial commit for public release. 2020-08-17 16:17:05 -07:00