Add clblast tests (#2636)

* Add clblast tests

* Add opencl test (#2641)

* Add opencl test

* Add links
pull/2647/head
A2va 1 year ago committed by GitHub
parent 9d93566cc8
commit 56dc22ea04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 16
      packages/c/clblast/xmake.lua

@ -50,3 +50,19 @@ package("clblast")
import("package.tools.cmake").install(package, configs) import("package.tools.cmake").install(package, configs)
end) end)
on_test(function (package)
assert(package:check_cxxsnippets({test = [[
#include <clblast.h>
void test () {
clblast::ClearCache();
}
]]}, {configs = {languages = "c++11"}}))
assert(package:check_csnippets({test = [[
#include <clblast_c.h>
void test () {
CLBlastClearCache();
}
]]}, {configs = {languages = "c11"}}))
end)
Loading…
Cancel
Save