Skip to content

Commit dfe2ddd

Browse files
committed
* review
1 parent 3df9362 commit dfe2ddd

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

apps/cpp_clml/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,13 @@ set(CMAKE_CXX_STANDARD_REQUIRED True)
3131

3232
#we do not want to pass -fno-exceptions
3333
if(${CMAKE_CXX_FLAGS} MATCHES "-fno-exceptions")
34+
message ( WARNING "Disabling -fno-exceptions")
3435
string(REGEX REPLACE "-fno-exceptions" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS})
3536
endif()
3637

3738
#we do not want to pass -fno-rtti
3839
if(${CMAKE_CXX_FLAGS} MATCHES "-fno-rtti")
40+
message ( WARNING "Disabling -fno-rtti")
3941
string(REGEX REPLACE "-fno-rtti" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS})
4042
endif()
4143

apps/cpp_clml/clml_runner.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ class CLMLRunner {
227227
std::shared_ptr<cl_ml_tensor_memory_desc_qcom> unusedTensor;
228228

229229
/*! \brief ML API interface */
230-
GET_ML_API_INTERFACE* h_ClmlIntf = NULL;
230+
GET_ML_API_INTERFACE* h_ClmlIntf = nullptr;
231231
/*! \brief Tuning cache object */
232232
cl_ml_tuningcache_qcom tuning_cache = NULL;
233233
/*! \brief Flag to inticate a tuning run */

apps/cpp_clml/main.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ int ExecuteModel(ToolArgs& args) {
173173

174174
// Init OpenCL Environment
175175
cl_int result;
176-
cl_event readEvent = NULL;
176+
cl_event readEvent = nullptr;
177177
cl_platform_id platform = NULL;
178178
cl_context context = NULL;
179179
cl_device_id device_id = NULL;

cmake/modules/contrib/CLML.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ if(USE_CLML_GRAPH_EXECUTOR)
5454
include_directories(${CLML_INCLUDE_DIRS})
5555
find_library(EXTERN_CLML_COMPUTE_LIB
5656
NAMES OpenCL libOpenCL
57-
HINTS "${CLML_PATH}" "${CLML_PATH}/lib" "${CLML_PATH}/lib64"
57+
HINTS "${CLML_PATH}" "${CLML_PATH}/lib64" "${CLML_PATH}/lib"
5858
)
5959
list(APPEND TVM_RUNTIME_LINKER_LIBS ${EXTERN_CLML_COMPUTE_LIB})
6060
list(APPEND RUNTIME_SRCS ${CLML_CONTRIB_SRC})

0 commit comments

Comments
 (0)