


--
You received this message because you are subscribed to the Google Groups "amgcl" group.
To unsubscribe from this group and stop receiving emails from it, send an email to amgcl+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/amgcl/99d3a108-2307-49eb-80e9-627c14b775c5n%40googlegroups.com.
Denis,Thank you so much for these pointers.I included the two variables as shown below:
and rebuild all of AMGCL, and I do not see any differences, in the examples generated amgcl-master\build\examples\Release,now I have a more fundamental question, are there any OpenCL examples ?
I tried searching in all *.c* and *.h* files for cl.h cl_device..... etc and I could not find any instances,I would need your help to understand how to determine when OpenCL is being used :).On a related aspect, I see that my CUDA driver also has OpenCLdoes this mean that we can use the CUDA SDK to build OpenCL codes that run on AMD cards ?
And I see that oneAPI also has an OpenCL version:I may try the 3 of them once I know how to test with OpenCL :)Lastly I always have this problem when building all of AMGCL, I have not needed the 8 exes that fail, so I never paid attention, but perhaps is easy for you to spot the issue (same for all 8 failures on my setup):poisson3Db.obj : error LNK2019: unresolved external symbol "class amgcl::profiler<struct amgcl::perf_counter::clock,2> amgcl::prof" (?prof@amgcl@@3V?$profiler@Uclock@perf_counter@amgcl@@$01@1@A) referenced in function "void __cdecl amgcl::backend::axpby<double,class amgcl::backend::numa_vector<double>,double,class std::vector<double,class std::allocator<double> > >(double,class amgcl::backend::numa_vector<double> const &,double,class std::vector<double,class std::allocator<double> > &)" (??$axpby@NV?$numa_vector@N@backend@amgcl@@NV?$vector@NV?$allocator@N@std@@@std@@@backend@amgcl@@YAXNAEBV?$numa_vector@N@01@NAEAV?$vector@NV?$allocator@N@std@@@std@@@Z)









To view this discussion on the web visit https://groups.google.com/d/msgid/amgcl/84f39be8-c0a5-429a-8d92-2d2a3a16223dn%40googlegroups.com.
Denis,Thanks so much for your guidance.I changed the LIBRARY entry:pointing to the .lib file, with static or dynamic we need a .lib for linking, just like with CUDA:As you said after removing /DAMGCL_PROFILING all exes linked w/o problems :).I downloaded VexCL from https://github.com/ddemidov/vexcl and unzipped it creating the dir treeThen when I tried using it with CMAKE, I tried these 4 options:And in all cases after "Configure" I get:I wonder what may be happening ...why CMAKE is not finding it?
Do I need to set VIENNACL_INCLUDE ?


To view this discussion on the web visit https://groups.google.com/d/msgid/amgcl/b1245641-79b2-4bef-a72d-67d64f89f035n%40googlegroups.com.










To view this discussion on the web visit https://groups.google.com/d/msgid/amgcl/86159e35-5183-4d6a-9881-b9f8e2ac9793n%40googlegroups.com.
Hi Denis,Well I ended up editing by hand file CMakeCache.txt based on the CMakeCache.txt from AMGCL/amgcl-master/build.here below we see that I edited x64 in CMakeCache.txt,but when I press Generate CMAKE makes changes that I can't control, changes some to Win32, and leaves others unchanged as shown below:
whereas in AMGCL everything is OK before / after generate:At least now 37 out of 39 VexCL tests run fine !!Now back in AMGCL, rebuilding only 9 failed:And all of them failed for the same reason, they are trying to link with the Win32 CUDA libs !!The few Tests done run fine ! :)Now running the same example tests that you run:And when I try CL it looks like there is a compilation at runtime:Then I thought that just with these Defines it would work:But it didn't, I got the same error again,How can I include the Define so that it is used at "runtime" ?Or perhaps my interpretation is not correct?


To view this discussion on the web visit https://groups.google.com/d/msgid/amgcl/2db76bf2-7e43-4f7d-89c6-15329e237c9fn%40googlegroups.com.
Denis,
Yourexport OCL_DEVICE=Quadrofixed my runtime issue :)). Thanks!!(I need to read the docs, that's hard!)About x64, this is the only thing that I could find:
To view this discussion on the web visit https://groups.google.com/d/msgid/amgcl/a6f6e6fa-7ba6-4e79-b9d6-3b0a632b9e26n%40googlegroups.com.