Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix non_uniform_work_group narrowing conversion issues #1159

Open
ellnor01 opened this issue Feb 12, 2021 · 1 comment
Open

Fix non_uniform_work_group narrowing conversion issues #1159

ellnor01 opened this issue Feb 12, 2021 · 1 comment

Comments

@ellnor01
Copy link
Contributor

Enabling narrowing errors by removing
if(CMAKE_COMPILER_IS_GNUCC OR "${CMAKE_CXX_COMPILER_ID}" MATCHES "(Apple)?Clang")
add_cxx_flag_if_supported(-Wno-narrowing)
endif()
in test_conformance/non_uniform_work_group/CMakeLists.txt produces many errors. A common example is:
test_conformance/non_uniform_work_group/test_advanced_2d.cpp:377:41: error: narrowing conversion of 'primeNumber' from 'int' to 'size_t {aka long unsigned int}' inside { } [-Werror=narrowing]

@ellnor01
Copy link
Contributor Author

This is a follow up for #787 and so requires #1144 to be merged first

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant