Open wangzy0327 opened 1 year ago
what does your make.defs
say about ranges?
for example, this might be useful, as shown in make.defs.gcc
:
RANGEFLAG=-DUSE_GCC_RANGES
what does your
make.defs
say about ranges?for example, this might be useful, as shown in
make.defs.gcc
:RANGEFLAG=-DUSE_GCC_RANGES
It default says
RANGEFLAG=-DUSE_RANGES_TS -I../deps/range-v3/include
@jeffhammond how to choose part contents to build in allcxx instead build allcxx?
@jeffhammond
I tried to build the stencil-range.cc, but it occurs error: 'range' has not been declared
. I have installed libboost-all-dev.How to solve the problem?
g++-11 -std=gnu++17 -pthread -O3 -mtune=native -ffast-math -Wall -Wno-ignored-attributes -Wno-deprecated-declarations -DPRKVERSION="2020" stencil-ranges.cc -DUSE_BOOST_IRANGE -I/usr/include/boost/ -DUSE_RANGES -o stencil-ranges
In file included from stencil-ranges.cc:66:
stencil_ranges.hpp: In function ‘void star1(int, prk::vector<double>&, prk::vector<double>&)’:
stencil_ranges.hpp:2:16: error: ‘ranges’ has not been declared
@jeffhammond Hello, I'm trying to run the Cxx11 cuda and SYCL programs in x86_64 Ubuntu-18.04 machine.But I'm unfamiliar with the make.defs config. Can you help me give you more precise make.defs config about cuda and SYCL? Thank you very much!
I tried to build the stencil-range.cc, but it occurs
error: 'range' has not been declared
. I have installed libboost-all-dev.How to solve the problem?g++-11 -std=gnu++17 -pthread -O3 -mtune=native -ffast-math -Wall -Wno-ignored-attributes -Wno-deprecated-declarations -DPRKVERSION="2020" stencil-ranges.cc -DUSE_BOOST_IRANGE -I/usr/include/boost/ -DUSE_RANGES -o stencil-ranges In file included from stencil-ranges.cc:66: stencil_ranges.hpp: In function ‘void star1(int, prk::vector<double>&, prk::vector<double>&)’: stencil_ranges.hpp:2:16: error: ‘ranges’ has not been declared
@wangzy0327 it sounds like a separate issue from the main thread, but I think
ranges
are from C++20, you are using-std=gnu++17
here as opposed to what you did earlier
What type of issue is this?
I copyed the make.defs.gcc to make.defs,use g++-11 to make allcxx. I get the error. How to solve the problem?
Where does this bug appear?
Check all that apply:
Operating system
Linux gxnzx1277 4.15.0-188-generic #199-Ubuntu SMP Wed Jun 15 20:42:56 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Ubuntu 18.04.6 LTS \n \l
Compiler
g++-11 (Ubuntu 11.1.0-1ubuntu1~18.04.1) 11.1.0 Copyright (C) 2021 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
PRK build information
Output showing problem
@jeffhammond
Please do not attach screenshots of your terminal.