Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions dpnp/backend/backend_pstl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@
#define BACKEND_PSTL_H

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-local-typedef"
#pragma clang diagnostic ignored "-Wunknown-pragmas"
// #pragma clang diagnostic ignored "-Wunused-local-typedef"
// #pragma clang diagnostic ignored "-Wunknown-pragmas"
#pragma clang diagnostic ignored "-Wsign-compare"
#pragma clang diagnostic ignored "-Wunused-variable"
// #pragma clang diagnostic ignored "-Wunused-variable"
#pragma clang diagnostic ignored "-Wunused-parameter"
#pragma clang diagnostic ignored "-Wshadow"

Expand Down
3 changes: 3 additions & 0 deletions dpnp/backend/queue_sycl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@
#ifndef QUEUE_SYCL_H // Cython compatibility
#define QUEUE_SYCL_H

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wpass-failed"
#include <CL/sycl.hpp>
#pragma clang diagnostic pop

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-parameter"
Expand Down
30 changes: 15 additions & 15 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@
Set compiler for the project
"""
# default variables (for Linux)
_project_compiler = "clang++"
_project_linker = "clang++"
_project_compiler = "dpcpp"
_project_linker = "dpcpp"
_project_cmplr_flag_sycl_devel = ["-fsycl-device-code-split=per_kernel"]
_project_cmplr_flag_sycl = ["-fsycl"]
_project_cmplr_flag_compatibility = ["-Wl,--enable-new-dtags"]
Expand Down Expand Up @@ -176,19 +176,19 @@
_sdl_ldflags = ["-NXCompat", "-DynamicBase"]


try:
"""
set environment variables to control setuptools build procedure
"""
# check if we have preset variables in environment
os.environ["CC"] == _project_compiler
os.environ["CXX"] == _project_compiler
os.environ["LD"] == _project_linker
except KeyError:
# set variables if not presented in environment
os.environ["CC"] = _project_compiler
os.environ["CXX"] = _project_compiler
os.environ["LD"] = _project_linker
# try:
# """
# set environment variables to control setuptools build procedure
# """
# # check if we have preset variables in environment
# os.environ["CC"] == _project_compiler
# os.environ["CXX"] == _project_compiler
# os.environ["LD"] == _project_linker
# except KeyError:
# # set variables if not presented in environment
# os.environ["CC"] = _project_compiler
# os.environ["CXX"] = _project_compiler
# os.environ["LD"] = _project_linker


"""
Expand Down
3 changes: 3 additions & 0 deletions utils/command_build_clib.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,10 @@ def build_libraries(self, libraries):

# set compiler and options
self.compiler.compiler_so = compiler + default_flags
self.compiler.compiler = self.compiler.compiler_so
self.compiler.compiler_cxx = self.compiler.compiler_so
self.compiler.linker_so = linker + default_flags
self.compiler.linker_exe = self.compiler.linker_so

objects = []
"""
Expand Down