tinygrad/test
qazal c704a77ca0
green dtypes ALU tests (#2617)
* dtypes alu test

* those types don't exist in torch

* floats

* more tests

* disable those

* a couple unary tests

* skip float16 tests in CI for GPU

* fix LLVM bool add True+True=1+1=2 which truncates to False in native LLVM

* remove hardcoded float for LLVM ALU fns

* less sensitive atol for fp32, 1e-10 is flaky and sometimes failed even if you revert the merge commit for non-fp32 math, nothing has changed in our kernels for fp32.

* return on overflows

* fix CUDA exp2

* compute results of op regardless of bounds in a python backend

* skip fp16 in GPU and CUDACPU

* fuzz a smaller range in the float_midcast_int32 test

I sampled this and we overflow ~70% of the time.
because numpy behaves differently on different devices for overflows and Metal seems to do the same, I'm opting to eliminate the non-determinism here

* remove CUDA exp2 overload it's already there now

---------

Co-authored-by: George Hotz <geohot@gmail.com>
2023-12-06 08:15:46 -08:00
..
external more test cleanups (#2631) 2023-12-05 16:17:57 -08:00
extra more test cleanups (#2631) 2023-12-05 16:17:57 -08:00
imported more test cleanups (#2631) 2023-12-05 16:17:57 -08:00
models more test cleanups (#2631) 2023-12-05 16:17:57 -08:00
unit adding test to cover #2644 failure (#2645) 2023-12-06 11:00:30 -05:00
web fast path for copy (#2548) 2023-12-01 11:34:47 -08:00
Dockerfile Docker fix (#1039) 2023-06-25 10:38:58 -07:00
__init__.py All devices are equal! (#196) 2020-12-15 23:44:08 -08:00
helpers.py lower schedule (#2559) 2023-12-01 19:17:46 -08:00
test_assign.py Apply ruff linting rules to tests (#2473) 2023-11-27 21:24:06 -08:00
test_conv.py update pytest marks and CI test filters (#2587) 2023-12-03 15:20:44 -05:00
test_conv_shapetracker.py fix some tests related to JitItem (#2279) 2023-11-11 23:00:35 -05:00
test_copy_speed.py Fix cl import in the copy_speed test and cifar example (#2586) 2023-12-03 09:22:07 -08:00
test_custom_function.py update pytest marks and CI test filters (#2587) 2023-12-03 15:20:44 -05:00
test_dtype.py Bitcast support / fast bf16 load (#2011) 2023-12-05 16:19:28 -08:00
test_dtype_alu.py green dtypes ALU tests (#2617) 2023-12-06 08:15:46 -08:00
test_gc.py fix up eye and fix gc test 2023-02-27 06:53:18 -08:00
test_hip_rdna3.py Non fp32 math (#2264) 2023-12-03 13:45:49 -08:00
test_image_dtype.py cast image doesn't work on nvidia (#2626) 2023-12-05 12:48:19 -08:00
test_jit.py enable the jit random test (#2580) 2023-12-02 20:25:23 -05:00
test_kernel_cache.py move device to device.py (#2466) 2023-11-27 11:34:37 -08:00
test_lazybuffer.py new style device (#2530) 2023-11-30 17:07:16 -08:00
test_lazyop.py Apply ruff linting rules to tests (#2473) 2023-11-27 21:24:06 -08:00
test_linearizer.py new style device (#2530) 2023-11-30 17:07:16 -08:00
test_linearizer_failures.py Non fp32 math (#2264) 2023-12-03 13:45:49 -08:00
test_net_speed.py Profiling-helper (#2321) 2023-11-16 14:15:56 -08:00
test_nn.py move to new cached fetch (#2493) 2023-11-28 17:36:55 -08:00
test_ops.py Get all WEBGPU test_ops passing (#2646) 2023-12-06 07:40:37 -08:00
test_optim.py use class Foo: instead of class Foo(): (#1797) 2023-09-06 12:20:25 -07:00
test_randomness.py update pytest marks and CI test filters (#2587) 2023-12-03 15:20:44 -05:00
test_sample.py enable test_sample for all backend (#2593) 2023-12-03 17:20:27 -05:00
test_schedule.py rewrite 0 size loadop into a CONST (#2556) 2023-12-01 18:29:06 -05:00
test_search.py new style device (#2530) 2023-11-30 17:07:16 -08:00
test_specific_conv.py Non fp32 math (#2264) 2023-12-03 13:45:49 -08:00
test_speed_v_torch.py Apply ruff linting rules to tests (#2473) 2023-11-27 21:24:06 -08:00
test_symbolic_jit.py improve test assertions for jit cache len with graph executor (#2476) 2023-11-27 23:02:45 -08:00
test_symbolic_ops.py enable symbolic ops tests for hip (#2485) 2023-11-27 22:33:41 -08:00
test_symbolic_shapetracker.py call ruff with --preview (#2522) 2023-11-30 13:59:00 -05:00
test_tensor.py move to new cached fetch (#2493) 2023-11-28 17:36:55 -08:00
test_to_numpy.py Apply ruff linting rules to tests (#2473) 2023-11-27 21:24:06 -08:00
test_uops.py Non fp32 math (#2264) 2023-12-03 13:45:49 -08:00
test_winograd.py Profiling-helper (#2321) 2023-11-16 14:15:56 -08:00
test_zero_copy.py Remove as_buffer for TORCH (#2554) 2023-12-01 18:51:38 -08:00