matthiasdiener / omptest Goto Github PK
View Code? Open in Web Editor NEWTest code for OpenMP/OpenACC/CUDA offloading
Test code for OpenMP/OpenACC/CUDA offloading
Hi @matthiasdiener,
thank you for your GCC offloading compilation script. It helped me a lot. I am testing the offloading now, but I don't understand part of your test application.
Lines 35 to 50 in 403e28d
omp_is_initial_device()
returns true (despite it is int) if the task is executed at a host device. You increment num_gpus
if the function returns 0 (false), and then at line 49 you say that offloading is possible if the num_gpus > 0
.I hope you get my point.
When executing your test application omp_is_initial_device()
always returns 0. ldd
confirms, that the binary is linked with the libraries from the GCC (GCC-10.2.0 or GCC-7.3.0 + CUDA/10.2.89) I have compiled (libstdc++.so, libgomp.so, libgcc_s.so). Do you have an idea could be wrong?
Thank you.
Ondra
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.