1
0
mirror of https://github.com/wolfpld/tracy synced 2025-04-28 20:23:51 +00:00

Fix a build of OpelCLVectorAdd example on linux (#989)

* Add a <cmath> as to fix unknown symbol sqrt whist building on linux (gcc). Remove <algorithm> as a consequence of clangd suggestion.

* adjust according to the review comment
This commit is contained in:
FrK5E 2025-02-26 15:37:49 +01:00 committed by GitHub
parent b04dfcd43d
commit b8c2e25c3d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,9 +1,9 @@
#include <algorithm>
#include <iostream>
#include <cassert>
#include <string>
#include <vector>
#include <numeric>
#include <math.h>
#include <CL/cl.h>