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

flashlight/flashlight/fl/tensor/backend/af/ArrayFireReductions.cpp:271:35: error: #1170

Open
CriDora opened this issue Apr 5, 2024 · 1 comment
Labels
question Further information is requested

Comments

@CriDora
Copy link

CriDora commented Apr 5, 2024

Hello! When I executed make -j, I encountered an error:
/mnt/workspace/liuhw/flashlight/flashlight/fl/tensor/backend/af/ArrayFireReductions.cpp: In member function ‘virtual fl::Tensor fl::ArrayFireBackend::std(const fl::Tensor&, const std::vector&, bool)’:
/mnt/workspace/liuhw/flashlight/flashlight/fl/tensor/backend/af/ArrayFireReductions.cpp:271:35: error: too many arguments to function ‘T af::stdev(const af::array&) [with T = double]’
271 | double out = af::stdev(toArray(input), biasMode);
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /mnt/workspace/liuhw/flashlight/flashlight/fl/tensor/backend/af/ArrayFireTensor.h:12,
from /mnt/workspace/liuhw/flashlight/flashlight/fl/tensor/backend/af/ArrayFireReductions.cpp:15:
/mnt/workspace/liuhw/others/arrayfire/include/af/statistics.h:185:9: note: declared here
185 | AFAPI T stdev(const array& in);
| ^~~~~
/mnt/workspace/liuhw/flashlight/flashlight/fl/tensor/backend/af/ArrayFireReductions.cpp:278:22: error: no matching function for call to ‘stdev(const af::array&, af_var_bias&, const value_type&)’
278 | af::stdev(toArray(input), biasMode, axes[0]), keepDims),
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /mnt/workspace/liuhw/flashlight/flashlight/fl/tensor/backend/af/ArrayFireTensor.h:12,
from /mnt/workspace/liuhw/flashlight/flashlight/fl/tensor/backend/af/ArrayFireReductions.cpp:15:
/mnt/workspace/liuhw/others/arrayfire/include/af/statistics.h:185:9: note: candidate: ‘template T af::stdev(const af::array&)’
185 | AFAPI T stdev(const array& in);
| ^~~~~
/mnt/workspace/liuhw/others/arrayfire/include/af/statistics.h:185:9: note: template argument deduction/substitution failed:
/mnt/workspace/liuhw/flashlight/flashlight/fl/tensor/backend/af/ArrayFireReductions.cpp:278:22: note: candidate expects 1 argument, 3 provided
278 | af::stdev(toArray(input), biasMode, axes[0]), keepDims),
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /mnt/workspace/liuhw/flashlight/flashlight/fl/tensor/backend/af/ArrayFireTensor.h:12,
from /mnt/workspace/liuhw/flashlight/flashlight/fl/tensor/backend/af/ArrayFireReductions.cpp:15:
/mnt/workspace/liuhw/others/arrayfire/include/af/statistics.h:101:13: note: candidate: ‘af::array af::stdev(const af::array&, dim_t)’
101 | AFAPI array stdev(const array& in, const dim_t dim=-1);
| ^~~~~

how can i solve this problem?

@CriDora CriDora added the question Further information is requested label Apr 5, 2024
@CriDora
Copy link
Author

CriDora commented Apr 5, 2024

This is the full output:
[ 1%] Building CXX object _deps/googletest-build/googletest/CMakeFiles/gtest.dir/src/gtest-all.cc.o
[ 1%] Building CXX object _deps/gloo-build/gloo/CMakeFiles/gloo.dir/allgatherv.cc.o
[ 1%] Building CXX object _deps/gloo-build/gloo/CMakeFiles/gloo.dir/algorithm.cc.o
[ 1%] Building CXX object _deps/gloo-build/gloo/CMakeFiles/gloo.dir/allreduce.cc.o
[ 2%] Building CXX object _deps/gloo-build/gloo/CMakeFiles/gloo.dir/allgather.cc.o
[ 2%] Building CXX object _deps/gloo-build/gloo/CMakeFiles/gloo.dir/alltoall.cc.o
[ 3%] Building CXX object _deps/gloo-build/gloo/CMakeFiles/gloo.dir/allreduce_local.cc.o
[ 4%] Building CXX object _deps/gloo-build/gloo/CMakeFiles/gloo.dir/barrier.cc.o
[ 4%] Building CXX object _deps/gloo-build/gloo/CMakeFiles/gloo.dir/broadcast.cc.o
[ 4%] Building CXX object _deps/gloo-build/gloo/CMakeFiles/gloo.dir/context.cc.o
[ 4%] Building CXX object _deps/gloo-build/gloo/CMakeFiles/gloo.dir/alltoallv.cc.o
[ 5%] Building CXX object _deps/gloo-build/gloo/CMakeFiles/gloo.dir/gatherv.cc.o
[ 5%] Building CXX object _deps/gloo-build/gloo/CMakeFiles/gloo.dir/gather.cc.o
[ 5%] Building CXX object _deps/gloo-build/gloo/CMakeFiles/gloo.dir/reduce.cc.o
[ 5%] Building CXX object _deps/gloo-build/gloo/CMakeFiles/gloo.dir/types.cc.o
[ 6%] Building CXX object _deps/gloo-build/gloo/CMakeFiles/gloo.dir/scatter.cc.o
[ 6%] Building CXX object _deps/gloo-build/gloo/CMakeFiles/gloo.dir/common/logging.cc.o
[ 7%] Building CXX object _deps/gloo-build/gloo/CMakeFiles/gloo.dir/common/linux.cc.o
[ 7%] Building CXX object _deps/gloo-build/gloo/CMakeFiles/gloo.dir/mpi/context.cc.o
[ 8%] Building CXX object _deps/gloo-build/gloo/CMakeFiles/gloo.dir/rendezvous/context.cc.o
[ 8%] Building CXX object _deps/gloo-build/gloo/CMakeFiles/gloo.dir/rendezvous/hash_store.cc.o
[ 8%] Building CXX object _deps/gloo-build/gloo/CMakeFiles/gloo.dir/rendezvous/file_store.cc.o
[ 8%] Building CXX object _deps/gloo-build/gloo/CMakeFiles/gloo.dir/rendezvous/prefix_store.cc.o
[ 8%] Building CXX object _deps/gloo-build/gloo/CMakeFiles/gloo.dir/rendezvous/store.cc.o
[ 9%] Building CXX object _deps/gloo-build/gloo/CMakeFiles/gloo.dir/transport/buffer.cc.o
[ 10%] Building CXX object _deps/gloo-build/gloo/CMakeFiles/gloo.dir/transport/tcp/address.cc.o
[ 10%] Building CXX object _deps/gloo-build/gloo/CMakeFiles/gloo.dir/transport/context.cc.o
[ 10%] Building CXX object _deps/gloo-build/gloo/CMakeFiles/gloo.dir/transport/pair.cc.o
[ 11%] Building CXX object _deps/gloo-build/gloo/CMakeFiles/gloo.dir/transport/device.cc.o
[ 11%] Building CXX object _deps/gloo-build/gloo/CMakeFiles/gloo.dir/transport/unbound_buffer.cc.o
[ 11%] Building CXX object _deps/gloo-build/gloo/CMakeFiles/gloo.dir/transport/tcp/context.cc.o
[ 11%] Building CXX object _deps/gloo-build/gloo/CMakeFiles/gloo.dir/transport/tcp/loop.cc.o
[ 11%] Building CXX object _deps/gloo-build/gloo/CMakeFiles/gloo.dir/transport/tcp/buffer.cc.o
[ 12%] Building CXX object _deps/gloo-build/gloo/CMakeFiles/gloo.dir/transport/tcp/device.cc.o
[ 12%] Building CXX object _deps/gloo-build/gloo/CMakeFiles/gloo.dir/transport/tcp/pair.cc.o
[ 13%] Building CXX object _deps/gloo-build/gloo/CMakeFiles/gloo.dir/transport/tcp/unbound_buffer.cc.o
[ 13%] Building CXX object _deps/gloo-build/gloo/CMakeFiles/gloo.dir/transport/address.cc.o
In file included from /mnt/workspace/liuhw/flashlight/build/_deps/gloo-src/gloo/transport/pair.h:13,
from /mnt/workspace/liuhw/flashlight/build/_deps/gloo-src/gloo/context.h:15,
from /mnt/workspace/liuhw/flashlight/build/_deps/gloo-src/gloo/mpi/context.h:11,
from /mnt/workspace/liuhw/flashlight/build/_deps/gloo-src/gloo/mpi/context.cc:9:
/mnt/workspace/liuhw/flashlight/build/_deps/gloo-src/gloo/mpi/context.cc: In destructor ‘gloo::mpi::MPIScope::~MPIScope()’:
/mnt/workspace/liuhw/flashlight/build/_deps/gloo-src/gloo/common/logging.h:137:7: warning: ‘throw’ will always call ‘terminate’ [-Wterminate]
137 | throw EnforceNotMet(
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
138 | FILE,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
139 | LINE,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
140 | expr,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
141 | r.get_message_and_free(MakeString(VA_ARGS)));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/mnt/workspace/liuhw/flashlight/build/_deps/gloo-src/gloo/common/logging.h:150:3: note: in expansion of macro ‘GLOO_ENFORCE_THAT_IMPL’
150 | GLOO_ENFORCE_THAT_IMPL(Equals((x), (y)), #x " == " #y, VA_ARGS)
| ^~~~~~~~~~~~~~~~~~~~~~
/mnt/workspace/liuhw/flashlight/build/_deps/gloo-src/gloo/mpi/context.cc:43:3: note: in expansion of macro ‘GLOO_ENFORCE_EQ’
43 | GLOO_ENFORCE_EQ(rv, MPI_SUCCESS);
| ^~~~~~~~~~~~~~~
/mnt/workspace/liuhw/flashlight/build/_deps/gloo-src/gloo/common/logging.h:137:7: note: in C++11 destructors default to ‘noexcept’
137 | throw EnforceNotMet(
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
138 | FILE,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
139 | LINE,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
140 | expr,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
141 | r.get_message_and_free(MakeString(VA_ARGS)));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/mnt/workspace/liuhw/flashlight/build/_deps/gloo-src/gloo/common/logging.h:150:3: note: in expansion of macro ‘GLOO_ENFORCE_THAT_IMPL’
150 | GLOO_ENFORCE_THAT_IMPL(Equals((x), (y)), #x " == " #y, VA_ARGS)
| ^~~~~~~~~~~~~~~~~~~~~~
/mnt/workspace/liuhw/flashlight/build/_deps/gloo-src/gloo/mpi/context.cc:43:3: note: in expansion of macro ‘GLOO_ENFORCE_EQ’
43 | GLOO_ENFORCE_EQ(rv, MPI_SUCCESS);
| ^~~~~~~~~~~~~~~
[ 13%] Linking CXX static library libgloo.a
[ 13%] Built target gloo
[ 14%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/contrib/modules/AdaptiveEmbedding.cpp.o
[ 14%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/contrib/modules/AsymmetricConv1D.cpp.o
[ 15%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/contrib/modules/PositionEmbedding.cpp.o
[ 15%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/contrib/modules/Residual.cpp.o
[ 15%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/contrib/modules/Conformer.cpp.o
[ 15%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/contrib/modules/RawWavSpecAugment.cpp.o
[ 16%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/contrib/modules/SinusoidalPositionEmbedding.cpp.o
[ 16%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/contrib/modules/TDSBlock.cpp.o
[ 17%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/contrib/modules/SpecAugment.cpp.o
[ 17%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/tensor/backend/af/mem/DefaultMemoryManager.cpp.o
[ 17%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/contrib/modules/Transformer.cpp.o
[ 17%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/tensor/backend/af/mem/MemoryManagerAdapter.cpp.o
[ 17%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/tensor/backend/af/mem/MemoryManagerInstaller.cpp.o
[ 18%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/tensor/backend/af/ArrayFireBackend.cpp.o
[ 18%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/tensor/backend/af/ArrayFireBinaryOps.cpp.o
[ 19%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/tensor/backend/af/ArrayFireBLAS.cpp.o
[ 19%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/tensor/backend/af/ArrayFireReductions.cpp.o
[ 19%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/tensor/backend/af/ArrayFireShapeAndIndex.cpp.o
[ 19%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/tensor/backend/af/mem/CachingMemoryManager.cpp.o
[ 20%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/tensor/backend/af/ArrayFireTensor.cpp.o
[ 20%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/tensor/backend/af/Utils.cpp.o
[ 20%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/tensor/backend/jit/eval/Evaluator.cpp.o
[ 20%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/tensor/backend/af/ArrayFireUnaryOps.cpp.o
[ 21%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/tensor/backend/jit/ir/BinaryNode.cpp.o
[ 22%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/tensor/backend/jit/ir/CustomNode.cpp.o
[ 22%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/tensor/backend/jit/ir/IndexNode.cpp.o
[ 22%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/tensor/backend/jit/ir/Node.cpp.o
[ 22%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/tensor/backend/jit/ir/ExternalUse.cpp.o
[ 22%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/tensor/backend/jit/ir/NodeType.cpp.o
[ 23%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/tensor/backend/jit/ir/IndexedUpdateNode.cpp.o
[ 24%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/tensor/backend/jit/ir/ScalarNode.cpp.o
[ 24%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/tensor/backend/jit/ir/Use.cpp.o
[ 25%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/tensor/backend/jit/printer/GraphvizPrinter.cpp.o
[ 25%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/tensor/backend/jit/ir/ValueNode.cpp.o
[ 25%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/tensor/backend/jit/printer/ScopedPostEvalGraphvizPrinter.cpp.o
[ 25%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/tensor/backend/jit/opt/backends/onednn/OneDnnJitOptimizerExtension.cpp.o
[ 26%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/tensor/backend/jit/opt/backends/onednn/OneDnnOpFusion.cpp.o
[ 26%] Building CUDA object CMakeFiles/flashlight.dir/flashlight/fl/tensor/backend/af/AdvancedIndex.cu.o
[ 26%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/tensor/backend/jit/opt/passes/ScalarFolding.cpp.o
[ 27%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/tensor/backend/jit/JitTensorBase.cpp.o
[ 27%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/tensor/backend/jit/opt/Optimizer.cpp.o
[ 27%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/tensor/backend/jit/ShapeInference.cpp.o
[ 27%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/tensor/backend/jit/Utils.cpp.o
[ 27%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/tensor/backend/stub/StubTensor.cpp.o
[ 28%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/tensor/backend/stub/StubBackend.cpp.o
[ 28%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/tensor/backend/jit/JitBackend.cpp.o
[ 28%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/tensor/backend/onednn/OneDnnBackend.cpp.o
[ 29%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/tensor/backend/onednn/OneDnnCPUStream.cpp.o
[ 29%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/tensor/backend/onednn/Utils.cpp.o
[ 29%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/tensor/backend/onednn/OneDnnTensor.cpp.o
[ 30%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/tensor/Compute.cpp.o
[ 30%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/tensor/DefaultTensorType.cpp.o
[ 30%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/tensor/Index.cpp.o
[ 31%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/tensor/Init.cpp.o
[ 31%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/tensor/Random.cpp.o
[ 31%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/tensor/Shape.cpp.o
[ 32%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/tensor/TensorBackend.cpp.o
[ 32%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/tensor/TensorBase.cpp.o
[ 32%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/tensor/TensorAdapter.cpp.o
[ 33%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/tensor/TensorExtension.cpp.o
[ 33%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/tensor/Types.cpp.o
[ 33%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/runtime/Device.cpp.o
[ 34%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/runtime/DeviceManager.cpp.o
[ 34%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/runtime/DeviceType.cpp.o
[ 34%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/runtime/Stream.cpp.o
[ 34%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/runtime/SynchronousStream.cpp.o
[ 35%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/runtime/CUDADevice.cpp.o
[ 35%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/runtime/CUDAStream.cpp.o
[ 35%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/runtime/CUDAUtils.cpp.o
[ 36%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/common/Utils.cpp.o
[ 36%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/common/DevicePtr.cpp.o
[ 36%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/common/Defines.cpp.o
[ 37%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/common/DynamicBenchmark.cpp.o
[ 37%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/common/Logging.cpp.o
[ 37%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/common/Histogram.cpp.o
[ 38%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/common/Timer.cpp.o
[ 38%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/common/Plugin.cpp.o
[ 38%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/common/stacktrace/Backward.cpp.o
[ 39%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/autograd/Variable.cpp.o
[ 40%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/autograd/Functions.cpp.o
[ 40%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/autograd/tensor/backend/onednn/OneDnnAutogradExtension.cpp.o
[ 40%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/autograd/Utils.cpp.o
[ 40%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/autograd/tensor/backend/onednn/Conv2D.cpp.o
[ 40%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/autograd/tensor/backend/onednn/Pool2D.cpp.o
[ 41%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/autograd/tensor/backend/onednn/RNN.cpp.o
[ 41%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/autograd/tensor/backend/onednn/BatchNorm.cpp.o
[ 42%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/autograd/tensor/backend/onednn/DnnlUtils.cpp.o
[ 42%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/autograd/tensor/AutogradOps.cpp.o
[ 42%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/dataset/BatchDataset.cpp.o
[ 42%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/dataset/BlobDataset.cpp.o
/mnt/workspace/liuhw/flashlight/flashlight/fl/runtime/DeviceType.cpp: In function ‘std::string fl::deviceTypeToString(fl::DeviceType)’:
/mnt/workspace/liuhw/flashlight/flashlight/fl/runtime/DeviceType.cpp:17:1: warning: control reaches end of non-void function [-Wreturn-type]
17 | }
| ^
[ 42%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/dataset/ConcatDataset.cpp.o
[ 43%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/dataset/Utils.cpp.o
[ 43%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/dataset/FileBlobDataset.cpp.o
[ 43%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/dataset/MemoryBlobDataset.cpp.o
[ 44%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/dataset/MergeDataset.cpp.o
[ 44%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/dataset/PrefetchDataset.cpp.o
/mnt/workspace/liuhw/flashlight/flashlight/fl/tensor/backend/af/ArrayFireReductions.cpp: In member function ‘virtual fl::Tensor fl::ArrayFireBackend::std(const fl::Tensor&, const std::vector&, bool)’:
/mnt/workspace/liuhw/flashlight/flashlight/fl/tensor/backend/af/ArrayFireReductions.cpp:271:35: error: too many arguments to function ‘T af::stdev(const af::array&) [with T = double]’
271 | double out = af::stdev(toArray(input), biasMode);
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /mnt/workspace/liuhw/flashlight/flashlight/fl/tensor/backend/af/ArrayFireTensor.h:12,
from /mnt/workspace/liuhw/flashlight/flashlight/fl/tensor/backend/af/ArrayFireReductions.cpp:15:
/mnt/workspace/liuhw/others/arrayfire/include/af/statistics.h:185:9: note: declared here
185 | AFAPI T stdev(const array& in);
| ^~~~~
/mnt/workspace/liuhw/flashlight/flashlight/fl/tensor/backend/af/ArrayFireReductions.cpp:278:22: error: no matching function for call to ‘stdev(const af::array&, af_var_bias&, const value_type&)’
278 | af::stdev(toArray(input), biasMode, axes[0]), keepDims),
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /mnt/workspace/liuhw/flashlight/flashlight/fl/tensor/backend/af/ArrayFireTensor.h:12,
from /mnt/workspace/liuhw/flashlight/flashlight/fl/tensor/backend/af/ArrayFireReductions.cpp:15:
/mnt/workspace/liuhw/others/arrayfire/include/af/statistics.h:185:9: note: candidate: ‘template T af::stdev(const af::array&)’
185 | AFAPI T stdev(const array& in);
| ^~~~~
/mnt/workspace/liuhw/others/arrayfire/include/af/statistics.h:185:9: note: template argument deduction/substitution failed:
/mnt/workspace/liuhw/flashlight/flashlight/fl/tensor/backend/af/ArrayFireReductions.cpp:278:22: note: candidate expects 1 argument, 3 provided
278 | af::stdev(toArray(input), biasMode, axes[0]), keepDims),
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /mnt/workspace/liuhw/flashlight/flashlight/fl/tensor/backend/af/ArrayFireTensor.h:12,
from /mnt/workspace/liuhw/flashlight/flashlight/fl/tensor/backend/af/ArrayFireReductions.cpp:15:
/mnt/workspace/liuhw/others/arrayfire/include/af/statistics.h:101:13: note: candidate: ‘af::array af::stdev(const af::array&, dim_t)’
101 | AFAPI array stdev(const array& in, const dim_t dim=-1);
| ^~~~~
/mnt/workspace/liuhw/others/arrayfire/include/af/statistics.h:101:13: note: candidate expects 2 arguments, 3 provided
[ 44%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/dataset/ResampleDataset.cpp.o
[ 45%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/dataset/SpanDataset.cpp.o
[ 45%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/dataset/ShuffleDataset.cpp.o
[ 45%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/dataset/TensorDataset.cpp.o
[ 46%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/dataset/TransformDataset.cpp.o
[ 46%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/distributed/DistributedApi.cpp.o
[ 46%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/distributed/FileStore.cpp.o
[ 47%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/distributed/reducers/InlineReducer.cpp.o
[ 47%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/distributed/reducers/CoalescingReducer.cpp.o
[ 47%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/distributed/backend/cpu/DistributedBackend.cpp.o
[ 48%] Building CXX object CMakeFiles/flashlight.dir/flashlight/fl/distributed/backend/cuda/DistributedBackend.cpp.o
make[2]: *** [CMakeFiles/flashlight.dir/build.make:314: CMakeFiles/flashlight.dir/flashlight/fl/tensor/backend/af/ArrayFireReductions.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/mnt/workspace/liuhw/flashlight/flashlight/fl/runtime/DeviceManager.cpp: In function ‘int {anonymous}::getActiveDeviceId(fl::DeviceType)’:
/mnt/workspace/liuhw/flashlight/flashlight/fl/runtime/DeviceManager.cpp:29:1: warning: control reaches end of non-void function [-Wreturn-type]
29 | }
| ^
/mnt/workspace/liuhw/flashlight/flashlight/fl/tensor/backend/onednn/OneDnnBackend.cpp: In member function ‘virtual fl::Tensor fl::OneDnnBackend::full(const fl::Shape&, const double&, fl::dtype)’:
/mnt/workspace/liuhw/flashlight/flashlight/fl/tensor/backend/onednn/OneDnnBackend.cpp:584:3: warning: control reaches end of non-void function [-Wreturn-type]
584 | }
| ^
/mnt/workspace/liuhw/flashlight/flashlight/fl/tensor/backend/onednn/OneDnnBackend.cpp:585:1: note: in expansion of macro ‘FL_ONEDNN_BACKEND_CREATE_FUN_LITERAL_DEF’
585 | FL_ONEDNN_BACKEND_CREATE_FUN_LITERAL_DEF(const double&);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/mnt/workspace/liuhw/flashlight/flashlight/fl/tensor/backend/onednn/OneDnnBackend.cpp: In member function ‘virtual fl::Tensor fl::OneDnnBackend::full(const fl::Shape&, const float&, fl::dtype)’:
/mnt/workspace/liuhw/flashlight/flashlight/fl/tensor/backend/onednn/OneDnnBackend.cpp:584:3: warning: control reaches end of non-void function [-Wreturn-type]
584 | }
| ^
/mnt/workspace/liuhw/flashlight/flashlight/fl/tensor/backend/onednn/OneDnnBackend.cpp:586:1: note: in expansion of macro ‘FL_ONEDNN_BACKEND_CREATE_FUN_LITERAL_DEF’
586 | FL_ONEDNN_BACKEND_CREATE_FUN_LITERAL_DEF(const float&);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/mnt/workspace/liuhw/flashlight/flashlight/fl/tensor/backend/onednn/OneDnnBackend.cpp: In member function ‘virtual fl::Tensor fl::OneDnnBackend::full(const fl::Shape&, const int&, fl::dtype)’:
/mnt/workspace/liuhw/flashlight/flashlight/fl/tensor/backend/onednn/OneDnnBackend.cpp:584:3: warning: control reaches end of non-void function [-Wreturn-type]
584 | }
| ^
/mnt/workspace/liuhw/flashlight/flashlight/fl/tensor/backend/onednn/OneDnnBackend.cpp:587:1: note: in expansion of macro ‘FL_ONEDNN_BACKEND_CREATE_FUN_LITERAL_DEF’
587 | FL_ONEDNN_BACKEND_CREATE_FUN_LITERAL_DEF(const int&);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/mnt/workspace/liuhw/flashlight/flashlight/fl/tensor/backend/onednn/OneDnnBackend.cpp: In member function ‘virtual fl::Tensor fl::OneDnnBackend::full(const fl::Shape&, const unsigned int&, fl::dtype)’:
/mnt/workspace/liuhw/flashlight/flashlight/fl/tensor/backend/onednn/OneDnnBackend.cpp:584:3: warning: control reaches end of non-void function [-Wreturn-type]
584 | }
| ^
/mnt/workspace/liuhw/flashlight/flashlight/fl/tensor/backend/onednn/OneDnnBackend.cpp:588:1: note: in expansion of macro ‘FL_ONEDNN_BACKEND_CREATE_FUN_LITERAL_DEF’
588 | FL_ONEDNN_BACKEND_CREATE_FUN_LITERAL_DEF(const unsigned&);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/mnt/workspace/liuhw/flashlight/flashlight/fl/tensor/backend/onednn/OneDnnBackend.cpp: In member function ‘virtual fl::Tensor fl::OneDnnBackend::full(const fl::Shape&, const char&, fl::dtype)’:
/mnt/workspace/liuhw/flashlight/flashlight/fl/tensor/backend/onednn/OneDnnBackend.cpp:584:3: warning: control reaches end of non-void function [-Wreturn-type]
584 | }
| ^
/mnt/workspace/liuhw/flashlight/flashlight/fl/tensor/backend/onednn/OneDnnBackend.cpp:589:1: note: in expansion of macro ‘FL_ONEDNN_BACKEND_CREATE_FUN_LITERAL_DEF’
589 | FL_ONEDNN_BACKEND_CREATE_FUN_LITERAL_DEF(const char&);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/mnt/workspace/liuhw/flashlight/flashlight/fl/tensor/backend/onednn/OneDnnBackend.cpp: In member function ‘virtual fl::Tensor fl::OneDnnBackend::full(const fl::Shape&, const unsigned char&, fl::dtype)’:
/mnt/workspace/liuhw/flashlight/flashlight/fl/tensor/backend/onednn/OneDnnBackend.cpp:584:3: warning: control reaches end of non-void function [-Wreturn-type]
584 | }
| ^
/mnt/workspace/liuhw/flashlight/flashlight/fl/tensor/backend/onednn/OneDnnBackend.cpp:590:1: note: in expansion of macro ‘FL_ONEDNN_BACKEND_CREATE_FUN_LITERAL_DEF’
590 | FL_ONEDNN_BACKEND_CREATE_FUN_LITERAL_DEF(const unsigned char&);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/mnt/workspace/liuhw/flashlight/flashlight/fl/tensor/backend/onednn/OneDnnBackend.cpp: In member function ‘virtual fl::Tensor fl::OneDnnBackend::full(const fl::Shape&, const long int&, fl::dtype)’:
/mnt/workspace/liuhw/flashlight/flashlight/fl/tensor/backend/onednn/OneDnnBackend.cpp:584:3: warning: control reaches end of non-void function [-Wreturn-type]
584 | }
| ^
/mnt/workspace/liuhw/flashlight/flashlight/fl/tensor/backend/onednn/OneDnnBackend.cpp:591:1: note: in expansion of macro ‘FL_ONEDNN_BACKEND_CREATE_FUN_LITERAL_DEF’
591 | FL_ONEDNN_BACKEND_CREATE_FUN_LITERAL_DEF(const long&);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/mnt/workspace/liuhw/flashlight/flashlight/fl/tensor/backend/onednn/OneDnnBackend.cpp: In member function ‘virtual fl::Tensor fl::OneDnnBackend::full(const fl::Shape&, const long unsigned int&, fl::dtype)’:
/mnt/workspace/liuhw/flashlight/flashlight/fl/tensor/backend/onednn/OneDnnBackend.cpp:584:3: warning: control reaches end of non-void function [-Wreturn-type]
584 | }
| ^
/mnt/workspace/liuhw/flashlight/flashlight/fl/tensor/backend/onednn/OneDnnBackend.cpp:592:1: note: in expansion of macro ‘FL_ONEDNN_BACKEND_CREATE_FUN_LITERAL_DEF’
592 | FL_ONEDNN_BACKEND_CREATE_FUN_LITERAL_DEF(const unsigned long&);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/mnt/workspace/liuhw/flashlight/flashlight/fl/tensor/backend/onednn/OneDnnBackend.cpp: In member function ‘virtual fl::Tensor fl::OneDnnBackend::full(const fl::Shape&, const long long int&, fl::dtype)’:
/mnt/workspace/liuhw/flashlight/flashlight/fl/tensor/backend/onednn/OneDnnBackend.cpp:584:3: warning: control reaches end of non-void function [-Wreturn-type]
584 | }
| ^
/mnt/workspace/liuhw/flashlight/flashlight/fl/tensor/backend/onednn/OneDnnBackend.cpp:593:1: note: in expansion of macro ‘FL_ONEDNN_BACKEND_CREATE_FUN_LITERAL_DEF’
593 | FL_ONEDNN_BACKEND_CREATE_FUN_LITERAL_DEF(const long long&);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/mnt/workspace/liuhw/flashlight/flashlight/fl/tensor/backend/onednn/OneDnnBackend.cpp: In member function ‘virtual fl::Tensor fl::OneDnnBackend::full(const fl::Shape&, const long long unsigned int&, fl::dtype)’:
/mnt/workspace/liuhw/flashlight/flashlight/fl/tensor/backend/onednn/OneDnnBackend.cpp:584:3: warning: control reaches end of non-void function [-Wreturn-type]
584 | }
| ^
/mnt/workspace/liuhw/flashlight/flashlight/fl/tensor/backend/onednn/OneDnnBackend.cpp:594:1: note: in expansion of macro ‘FL_ONEDNN_BACKEND_CREATE_FUN_LITERAL_DEF’
594 | FL_ONEDNN_BACKEND_CREATE_FUN_LITERAL_DEF(const unsigned long long&);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/mnt/workspace/liuhw/flashlight/flashlight/fl/tensor/backend/onednn/OneDnnBackend.cpp: In member function ‘virtual fl::Tensor fl::OneDnnBackend::full(const fl::Shape&, const bool&, fl::dtype)’:
/mnt/workspace/liuhw/flashlight/flashlight/fl/tensor/backend/onednn/OneDnnBackend.cpp:584:3: warning: control reaches end of non-void function [-Wreturn-type]
584 | }
| ^
/mnt/workspace/liuhw/flashlight/flashlight/fl/tensor/backend/onednn/OneDnnBackend.cpp:595:1: note: in expansion of macro ‘FL_ONEDNN_BACKEND_CREATE_FUN_LITERAL_DEF’
595 | FL_ONEDNN_BACKEND_CREATE_FUN_LITERAL_DEF(const bool&);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/mnt/workspace/liuhw/flashlight/flashlight/fl/tensor/backend/onednn/OneDnnBackend.cpp: In member function ‘virtual fl::Tensor fl::OneDnnBackend::full(const fl::Shape&, const short int&, fl::dtype)’:
/mnt/workspace/liuhw/flashlight/flashlight/fl/tensor/backend/onednn/OneDnnBackend.cpp:584:3: warning: control reaches end of non-void function [-Wreturn-type]
584 | }
| ^
/mnt/workspace/liuhw/flashlight/flashlight/fl/tensor/backend/onednn/OneDnnBackend.cpp:596:1: note: in expansion of macro ‘FL_ONEDNN_BACKEND_CREATE_FUN_LITERAL_DEF’
596 | FL_ONEDNN_BACKEND_CREATE_FUN_LITERAL_DEF(const short&);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/mnt/workspace/liuhw/flashlight/flashlight/fl/tensor/backend/onednn/OneDnnBackend.cpp: In member function ‘virtual fl::Tensor fl::OneDnnBackend::full(const fl::Shape&, const short unsigned int&, fl::dtype)’:
/mnt/workspace/liuhw/flashlight/flashlight/fl/tensor/backend/onednn/OneDnnBackend.cpp:584:3: warning: control reaches end of non-void function [-Wreturn-type]
584 | }
| ^
/mnt/workspace/liuhw/flashlight/flashlight/fl/tensor/backend/onednn/OneDnnBackend.cpp:597:1: note: in expansion of macro ‘FL_ONEDNN_BACKEND_CREATE_FUN_LITERAL_DEF’
597 | FL_ONEDNN_BACKEND_CREATE_FUN_LITERAL_DEF(const unsigned short&);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/mnt/workspace/liuhw/flashlight/flashlight/fl/tensor/backend/onednn/OneDnnBackend.cpp: In function ‘fl::Tensor fl::{anonymous}::iotaSingleAxisCpu(unsigned int, unsigned int, unsigned int, fl::dtype)’:
/mnt/workspace/liuhw/flashlight/flashlight/fl/tensor/backend/onednn/OneDnnBackend.cpp:149:1: warning: control reaches end of non-void function [-Wreturn-type]
149 | }
| ^
/mnt/workspace/liuhw/flashlight/flashlight/fl/tensor/backend/onednn/OneDnnTensor.cpp: In member function ‘virtual std::string fl::OneDnnTensor::toString()’:
/mnt/workspace/liuhw/flashlight/flashlight/fl/tensor/backend/onednn/OneDnnTensor.cpp:587:1: warning: control reaches end of non-void function [-Wreturn-type]
587 | }
| ^
[ 48%] Linking CXX static library ../../../lib/libgtest.a
[ 48%] Built target gtest
[ 48%] Building CXX object _deps/googletest-build/googlemock/CMakeFiles/gmock.dir/src/gmock-all.cc.o
[ 48%] Building CXX object _deps/googletest-build/googletest/CMakeFiles/gtest_main.dir/src/gtest_main.cc.o
[ 49%] Linking CXX static library ../../../lib/libgtest_main.a
[ 49%] Built target gtest_main
[ 50%] Linking CXX static library ../../../lib/libgmock.a
[ 50%] Built target gmock
[ 50%] Building CXX object _deps/googletest-build/googlemock/CMakeFiles/gmock_main.dir/src/gmock_main.cc.o
[ 50%] Linking CXX static library ../../../lib/libgmock_main.a
[ 50%] Built target gmock_main
make[1]: *** [CMakeFiles/Makefile2:1179: CMakeFiles/flashlight.dir/all] Error 2
make: *** [Makefile:146: all] Error 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant