Skip to content

Commit 36b904e

Browse files
authored
ggml-opencl.cpp: Make private functions static (#3300)
1 parent 324f340 commit 36b904e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ggml-opencl.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -847,7 +847,7 @@ std::array<std::string, 2> mul_str_values = {
847847
"mul_f32", "float"
848848
};
849849

850-
std::string& replace(std::string& s, const std::string& from, const std::string& to) {
850+
static std::string& replace(std::string& s, const std::string& from, const std::string& to) {
851851
size_t pos = 0;
852852
while ((pos = s.find(from, pos)) != std::string::npos) {
853853
s.replace(pos, from.length(), to);
@@ -856,7 +856,7 @@ std::string& replace(std::string& s, const std::string& from, const std::string&
856856
return s;
857857
}
858858

859-
std::string generate_kernels() {
859+
static std::string generate_kernels() {
860860
std::stringstream src;
861861
src << program_source << '\n';
862862
src << k_quants_source << '\n';
@@ -1788,7 +1788,7 @@ bool ggml_cl_can_mul_mat(const struct ggml_tensor * src0, const struct ggml_tens
17881788
return false;
17891789
}
17901790

1791-
bool ggml_cl_mul_mat_use_f16(const struct ggml_tensor * src0, const struct ggml_tensor * src1, struct ggml_tensor * /* dst */) {
1791+
static bool ggml_cl_mul_mat_use_f16(const struct ggml_tensor * src0, const struct ggml_tensor * src1, struct ggml_tensor * /* dst */) {
17921792
// If device doesn't support FP16
17931793
if (!fp16_support) {
17941794
return false;

0 commit comments

Comments
 (0)