Den Sun, 08 Sep 2013 12:20:18 +0300 skrev Re: [pocl-devel] Triples, targets, cpus, and features... and HOST vs. TARGET:
> If you think of binary distributions of pocl with GPU device support > enabled, one cannot rely on configure-time detection of the device > features, not even on how many and which type of devices (GPUs) one > has in the machine. Actually, we don't need to even think of GPUs to hit the problem. Already with x86_64 CPUs there is the issue of which SSE/AVX extension to enable. We probably want to enable the latest one the compiler & processor allow us. So - HOST flags should *only* be used to compile libpocl (libOpenCL). And each target must take care of the TARGET flags, probably detecting them at runtime. ? How about the runtime kernel library, then? There is some "#ifdef SSE"-like stuff there already, and we compile this into .bc before we know the the exact processor that we are going to run on. kalle ------------------------------------------------------------------------------ Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save! http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk _______________________________________________ pocl-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/pocl-devel
