Skip to content

Lack of compile time options in backend tests #551

Open
@shssf

Description

@shssf

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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions