-
Notifications
You must be signed in to change notification settings - Fork 154
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
cmake error #1448
Comments
Could you share a reproducer for your installation of AdaptiveCpp? |
Have you actually run The |
Regarding this: This is probably due to the space after |
Thank you, @illuhad @nilsfriess following your suggestions I was able to successfully run the cmake command without any errors. |
Can you make sure that the libstdc++ version that you use to build AdaptiveCpp itself and the example match as suggested here: |
when run the command, AdaptiveCpp uses libstdc++.so.6 |
Now we have to find out if that's the same as clang is trying to use when you compile your example. Not sure how to best do this, maybe just compile a simple Hello World program using the clang that acpp is using (you can get that from |
when run cat /.../AdaptiveCpp/etc/AdaptiveCpp/acpp-core.json | grep "default-clang" got the output when run the command ldd helloworld | grep libstdc++ |
Not sure what the problem is then. Have you tried just manually compiling the example using
and post the output here. |
When run the command /....../AdaptiveCpp/bin/acpp -o bruteforce_nbody bruteforce_nbody.cpp -v got the output: acpp warning: No optimization flag was given, optimizations are disabled by default. Performance may be degraded. Compile with e.g. -O2/-O3 to enable optimizations. |
And does the compilation succeed? Or is there still the same error as before? |
Upon compilation, there were no errors. After the compilation, an executable bruteforce_nbody was created. When this executable was run a txt file named output.txt was created. The txt file contains x, y, z coordinates and a scalar value. |
Okay, this means that For building with cmake, can you please:
|
After running make VERBOSE=1, the output I have obtained is: |
I have installed Adaptive Cpp. when trying to run the examples project, in the examples/build folder got the following error, when running the cmake command,
cmake .. -DAdaptiveCpp_DIR=/...../AdaptiveCpp/build -DACPP_TARGETS= 'cuda:sm_86'
CMake Warning:
Ignoring extra path from command line:
"cuda:sm_86"
CMake Error at /......../AdaptiveCpp/build/adaptivecpp-config.cmake:33 (include):
include could not find requested file:
Call Stack (most recent call first):
CMakeLists.txt:11 (find_package)
CMake Error: File /...../lib/cmake/AdaptiveCpp/syclcc-launch.rule.in does not exist.
CMake Error at /......../AdaptiveCpp/build/adaptivecpp-config.cmake:114 (configure_file):
configure_file Problem configuring file
Call Stack (most recent call first):
CMakeLists.txt:11 (find_package)
-- Configuring incomplete, errors occurred!
I have noticed that in usr/local/lib/cmake folder named AdaptiveCpp has not been generated. However there were no errors when building and installing AdaptiveCpp.
The text was updated successfully, but these errors were encountered: