GithubHelp home page GithubHelp logo

Comments (7)

jeffhammond avatar jeffhammond commented on August 17, 2024

what does your make.defs say about ranges?

for example, this might be useful, as shown in make.defs.gcc:

RANGEFLAG=-DUSE_GCC_RANGES

from kernels.

wangzy0327 avatar wangzy0327 commented on August 17, 2024

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

from kernels.

wangzy0327 avatar wangzy0327 commented on August 17, 2024

@jeffhammond how to choose part contents to build in allcxx instead build allcxx?

from kernels.

jeffhammond avatar jeffhammond commented on August 17, 2024
  1. change RANGEFLAG appropriately. use the GCC implementation if it's available.
  2. look at Cxx11/Makefile to see what targets exist. you can go to that subdirectory and build individual programs if you want.

from kernels.

wangzy0327 avatar wangzy0327 commented on August 17, 2024

@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

from kernels.

wangzy0327 avatar wangzy0327 commented on August 17, 2024

@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!

from kernels.

AtlantaPepsi avatar AtlantaPepsi commented on August 17, 2024

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

from kernels.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.