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

Lack of compile time options in backend tests #551

Open
shssf opened this issue Jan 31, 2021 · 1 comment
Open

Lack of compile time options in backend tests #551

shssf opened this issue Jan 31, 2021 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@shssf
Copy link
Contributor

shssf commented Jan 31, 2021

run by

export DPNP_BACKEND_TESTS_ENABLE=1
./0.build.sh

main backend files compile options looks like:

dpcpp  -DDPNP_LOCAL_QUEUE=1 -DMKL_ILP64=1 -DONEDPL_USE_PREDEFINED_POLICIES=0 -DPSTL_USE_PARALLEL_POLICIES=0 -D_FORTIFY_SOURCE=2 -D_GLIBCXX_USE_TBB_PAR_BACKEND=0
-O3 -DNDEBUG -fPIC
-W -Wextra -Wshadow -Wall -Wstrict-prototypes -Wformat -Wformat-security
-fsycl -fsycl-device-code-split=per_kernel
-O3 -fno-delete-null-pointer-checks -fstack-protector-strong -fno-strict-overflow -std=gnu++17

backend tests compile options:

dpcpp  -DONEDPL_USE_PREDEFINED_POLICIES=0 -DPSTL_USE_PARALLEL_POLICIES=0 -D_FORTIFY_SOURCE=2 -D_GLIBCXX_USE_TBB_PAR_BACKEND=0
-O3 -DNDEBUG -fPIE
-W -Wextra -Wshadow -Wall -Wstrict-prototypes -Wformat -Wformat-security
-fsycl -fsycl-device-code-split=per_kernel
-O3 -fno-delete-null-pointer-checks -fstack-protector-strong -fno-strict-overflow -std=gnu++17 -c test_random.cpp

In backend tests we can not use queue_sycl.hpp as in main project bucase it has no queue manager control
I used workaround (put macro before include to simulate correct build options)

#define DPNP_LOCAL_QUEUE 1
#include "queue_sycl.hpp"

Since we have many configurations for build procedure I'm not sure where we have extra differences in compile time options.

@shssf shssf added the bug Something isn't working label Jan 31, 2021
@shssf
Copy link
Contributor Author

shssf commented Feb 21, 2021

The problem still exists

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants