| 102 | |
| 103 | template <ECGPUBackend backend> |
| 104 | void DeviceInitializeTest<backend>::test_all() |
| 105 | { |
| 106 | SUBCASE("InstanceCreationDbgGpu") |
| 107 | { |
| 108 | auto inst = init_instance(backend, true, true); |
| 109 | EXPECT_NE(inst, CGPU_NULLPTR); |
| 110 | cgpu_free_instance(inst); |
| 111 | } |
| 112 | |
| 113 | SUBCASE("InstanceCreationDbg") |
| 114 | { |
| 115 | auto inst = init_instance(backend, true, false); |
| 116 | EXPECT_NE(inst, CGPU_NULLPTR); |
| 117 | cgpu_free_instance(inst); |
| 118 | } |
| 119 | |
| 120 | SUBCASE("InstanceCreation") |
| 121 | { |
| 122 | auto inst = init_instance(backend, false, false); |
| 123 | EXPECT_NE(inst, CGPU_NULLPTR); |
| 124 | cgpu_free_instance(inst); |
| 125 | } |
| 126 | |
| 127 | SUBCASE("AdapterEnum") |
| 128 | { |
| 129 | auto instance = init_instance(backend, true, true); |
| 130 | REQUIRE(enum_adapters(instance) > 0); |
| 131 | cgpu_free_instance(instance); |
| 132 | } |
| 133 | |
| 134 | SUBCASE("CreateDeviceDbgGpu") |
| 135 | { |
| 136 | auto inst = init_instance(backend, true, true); |
| 137 | EXPECT_NE(inst, CGPU_NULLPTR); |
| 138 | test_create_device(inst, false, false); |
| 139 | cgpu_free_instance(inst); |
| 140 | } |
| 141 | |
| 142 | SUBCASE("CreateDevice") |
| 143 | { |
| 144 | auto inst = init_instance(backend, false, false); |
| 145 | EXPECT_NE(inst, CGPU_NULLPTR); |
| 146 | test_create_device(inst, false, false); |
| 147 | cgpu_free_instance(inst); |
| 148 | } |
| 149 | |
| 150 | SUBCASE("CreateDeviceDbg") |
| 151 | { |
| 152 | auto inst = init_instance(backend, true, false); |
| 153 | EXPECT_NE(inst, CGPU_NULLPTR); |
| 154 | test_create_device(inst, false, false); |
| 155 | cgpu_free_instance(inst); |
| 156 | } |
| 157 | |
| 158 | SUBCASE("QueryQueueCount") |
| 159 | { |
| 160 | auto instance = init_instance(backend, true, true); |
| 161 | uint32_t adapters_count = 0; |
nothing calls this directly
no test coverage detected