summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorslaren <slarengh@gmail.com>2023-12-24 14:34:22 +0100
committerGitHub <noreply@github.com>2023-12-24 14:34:22 +0100
commit5bf3953d7e9831ea22b0bc017ce97409b801ccf1 (patch)
tree48c0136d9943fb9cca22209894464970549c24b5 /tests
parent708e179e8562c2604240df95a2241dea17fd808b (diff)
cuda : improve cuda pool efficiency using virtual memory (#4606)
* cuda : improve cuda pool efficiency using virtual memory * fix mixtral * fix cmake build * check for vmm support, disable for hip ggml-ci * fix hip build * clarify granularity * move all caps to g_device_caps * refactor error checking * add cuda_pool_alloc, refactor most pool allocations ggml-ci * fix hip build * CUBLAS_TF32_TENSOR_OP_MATH is not a macro * more hip crap * llama : fix msvc warnings * ggml : fix msvc warnings * minor * minor * cuda : fallback to CPU on host buffer alloc fail * Update ggml-cuda.cu Co-authored-by: Johannes Gäßler <johannesg@5d6.de> * Update ggml-cuda.cu Co-authored-by: Johannes Gäßler <johannesg@5d6.de> * ensure allocations are always aligned * act_size -> actual_size --------- Co-authored-by: Johannes Gäßler <johannesg@5d6.de>
Diffstat (limited to 'tests')
-rw-r--r--tests/test-grad0.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/tests/test-grad0.cpp b/tests/test-grad0.cpp
index 14914def..8ff76c89 100644
--- a/tests/test-grad0.cpp
+++ b/tests/test-grad0.cpp
@@ -883,9 +883,6 @@ int main(int argc, const char ** argv) {
srand(seed);
const int nargs = 1;
- int64_t ne2[4];
- ne2[0] = 1;
-
for (int ndims = 1; ndims <= 2; ++ndims) {
x[0] = get_random_tensor_f32(ctx0, ndims, ne, -1.0f, 1.0f);