Skip to content

Commit

Permalink
v1.1.1 release (#61)
Browse files Browse the repository at this point in the history
[Bug Fix] Fixed an issue in older cudnn versions where heurisitcs would
return SUCCESS even if the number of heuristics results were zero.
  • Loading branch information
Anerudhan authored Feb 27, 2024
1 parent c29d609 commit fd27d76
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.17)

project(cudnn_frontend VERSION 1.1.0)
project(cudnn_frontend VERSION 1.1.1)

option(CUDNN_FRONTEND_BUILD_SAMPLES "Defines if samples are built or not." ON)
option(CUDNN_FRONTEND_BUILD_UNIT_TESTS "Defines if unittests are built or not." OFF)
Expand Down
2 changes: 1 addition & 1 deletion include/cudnn_frontend.h
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@

#define CUDNN_FRONTEND_MAJOR_VERSION 1
#define CUDNN_FRONTEND_MINOR_VERSION 1
#define CUDNN_FRONTEND_PATCH_VERSION 0
#define CUDNN_FRONTEND_PATCH_VERSION 1
#define CUDNN_FRONTEND_VERSION \
((CUDNN_FRONTEND_MAJOR_VERSION * 10000) + (CUDNN_FRONTEND_MINOR_VERSION * 100) + CUDNN_FRONTEND_PATCH_VERSION)

Expand Down
4 changes: 4 additions & 0 deletions include/cudnn_frontend_Heuristics.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,11 @@ class EngineHeuristics_v8 : public BackendDescriptor {
count,
&result,
heuristic_results_.data());
#if (CUDNN_VERSION >= 8907)
if (status != CUDNN_STATUS_SUCCESS || result < 1) {
#else
if (status != CUDNN_STATUS_SUCCESS) {
#endif
set_error_and_throw_exception(
this, status, "CUDNN_BACKEND_ENGINEHEUR_DESCRIPTOR: GetAttribute CUDNN_ATTR_ENGINEHEUR_RESULTS Failed");
};
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def build_extension(self, ext: CMakeExtension) -> None:
# logic and declaration, and simpler if you include description/version in a file.
setup(
name="cudnn",
version="1.1.0",
version="1.1.1",
author="",
author_email="",
description="cudnn_frontend python package",
Expand Down

0 comments on commit fd27d76

Please sign in to comment.