Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

7900XTX and Vulkan doesn't work #2165

Open
minspresso opened this issue Jul 14, 2024 · 0 comments
Open

7900XTX and Vulkan doesn't work #2165

minspresso opened this issue Jul 14, 2024 · 0 comments

Comments

@minspresso
Copy link

minspresso commented Jul 14, 2024

nod.ai SHARK 20240621.1343
Windows 10
7900 XTX
AMD driver 24.6.1

rocm works as expected.
As soon as I change the device to vulkan and hit "start", I get the following error

[LOG] Loading pipeline to device vulkan.

Traceback (most recent call last):
  File "C:\Users\tr\AppData\Local\Temp\_MEI105122\gradio\queueing.py", line 527, in process_events
    response = await route_utils.call_process_api(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\tr\AppData\Local\Temp\_MEI105122\gradio\route_utils.py", line 270, in call_process_api
    output = await app.get_blocks().process_api(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\tr\AppData\Local\Temp\_MEI105122\gradio\blocks.py", line 1847, in process_api
    result = await self.call_function(
             ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\tr\AppData\Local\Temp\_MEI105122\gradio\blocks.py", line 1445, in call_function
    prediction = await utils.async_iteration(iterator)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\tr\AppData\Local\Temp\_MEI105122\gradio\utils.py", line 629, in async_iteration
    return await iterator.__anext__()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\tr\AppData\Local\Temp\_MEI105122\gradio\utils.py", line 622, in __anext__
    return await anyio.to_thread.run_sync(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "anyio\to_thread.py", line 56, in run_sync
  File "anyio\_backends\_asyncio.py", line 2177, in run_sync_in_worker_thread
  File "anyio\_backends\_asyncio.py", line 859, in run
  File "C:\Users\tr\AppData\Local\Temp\_MEI105122\gradio\utils.py", line 605, in run_sync_iterator_async
    return next(iterator)
           ^^^^^^^^^^^^^^
  File "C:\Users\tr\AppData\Local\Temp\_MEI105122\gradio\utils.py", line 788, in gen_wrapper
    response = next(iterator)
               ^^^^^^^^^^^^^^
  File "apps\shark_studio\api\sd.py", line 315, in shark_sd_fn_dict_input
  File "apps\shark_studio\api\sd.py", line 438, in shark_sd_fn
  File "apps\shark_studio\api\sd.py", line 244, in prepare_pipe
  File "turbine_models\custom_models\sd_inference\sd_pipeline.py", line 372, in load_pipeline
  File "turbine_models\model_runner.py", line 66, in __init__
  File "iree\runtime\system_api.py", line 191, in __init__
    self._vm_context = _binding.VmContext(
                       ^^^^^^^^^^^^^^^^^^^
RuntimeError: Error creating vm context with modules: D:\a\SRT\SRT\c\runtime\src\iree\hal\drivers\vulkan\native_allocator.cc:315: UNKNOWN; VkResult=-13; vkAllocateMemory; failed to allocate buffer of length 640; while invoking native function hal.allocator.allocate; while calling import;
[ 1]   native hal.allocator.allocate:0 -
[ 0] bytecode compiled_clip.__init:4080 [
    <stdin>:2:3,
    <stdin>:3:3,
    <stdin>:4:3,
    <stdin>:5:3,
    <stdin>:6:3,
    <stdin>:7:3,
    <stdin>:8:3,
    <stdin>:9:3,
    <stdin>:10:3,
    <stdin>:11:3,
    <stdin>:12:3,
    <stdin>:13:3,
    <stdin>:14:3,
    <stdin>:15:3,
    <stdin>:16:3,
    <stdin>:17:3,
    <stdin>:18:3,
    <stdin>:19:3,
    <stdin>:20:3,
    <stdin>:21:3,
    <stdin>:22:3,
    <stdin>:23:3,
    <stdin>:24:3,
    <stdin>:25:3,
    <stdin>:26:3,
    <stdin>:27:3,
    <stdin>:28:3,
    <stdin>:29:3,
    <stdin>:30:3,
    <stdin>:31:3,
    <stdin>:32:3,
    <stdin>:33:3,
    <stdin>:34:3,
    <stdin>:35:3,
    <stdin>:36:3,
    <stdin>:37:3,
    <stdin>:38:3,
    <stdin>:39:3,
    <stdin>:40:3,
    <stdin>:41:3,
    <stdin>:42:3,
    <stdin>:43:3,
    <stdin>:44:3,
    <stdin>:45:3,
    <stdin>:46:3,
    <stdin>:47:3,
    <stdin>:48:3,
    <stdin>:49:3,
    <stdin>:50:3,
    <stdin>:51:3,
    <stdin>:52:3,
    <stdin>:53:3,
    <stdin>:54:3,
    <stdin>:55:3,
    <stdin>:56:3,
    <stdin>:57:3,
    <stdin>:58:3,
    <stdin>:59:3,
    <stdin>:60:3,
    <stdin>:61:3,
    <stdin>:62:3,
    <stdin>:63:3,
    <stdin>:64:3,
    <stdin>:65:3,
    <stdin>:66:3,
    <stdin>:67:3,
    <stdin>:68:3,
    <stdin>:69:3,
    <stdin>:70:3,
    <stdin>:71:3,
    <stdin>:72:3,
    <stdin>:73:3,
    <stdin>:74:3,
    <stdin>:75:3,
    <stdin>:76:3,
    <stdin>:77:3,
    <stdin>:78:3,
    <stdin>:79:3,
    <stdin>:80:3,
    <stdin>:81:3,
    <stdin>:82:3,
    <stdin>:83:3,
    <stdin>:84:3,
    <stdin>:85:3,
    <stdin>:86:3,
    <stdin>:87:3,
    <stdin>:88:3,
    <stdin>:89:3,
    <stdin>:90:3,
    <stdin>:91:3,
    <stdin>:92:3,
    <stdin>:93:3,
    <stdin>:94:3,
    <stdin>:95:3,
    <stdin>:96:3,
    <stdin>:97:3,
    <stdin>:98:3,
    <stdin>:99:3,
    <stdin>:100:3,
    <stdin>:101:3,
    <stdin>:102:3,
    <stdin>:103:3,
    <stdin>:104:3,
    <stdin>:105:3,
    <stdin>:106:3,
    <stdin>:107:3,
    <stdin>:108:3,
    <stdin>:109:3,
    <stdin>:110:3,
    <stdin>:111:3,
    <stdin>:112:3,
    <stdin>:113:3,
    <stdin>:114:3,
    <stdin>:115:3,
    <stdin>:116:3,
    <stdin>:117:3,
    <stdin>:118:3,
    <stdin>:119:3,
    <stdin>:120:3,
    <stdin>:121:3,
    <stdin>:122:3,
    <stdin>:123:3,
    <stdin>:124:3,
    <stdin>:125:3,
    <stdin>:126:3,
    <stdin>:127:3,
    <stdin>:128:3,
    <stdin>:129:3,
    <stdin>:130:3,
    <stdin>:131:3,
    <stdin>:132:3,
    <stdin>:133:3,
    <stdin>:134:3,
    <stdin>:135:3,
    <stdin>:136:3,
    <stdin>:137:3,
    <stdin>:138:3,
    <stdin>:139:3,
    <stdin>:140:3,
    <stdin>:141:3,
    <stdin>:142:3,
    <stdin>:143:3,
    <stdin>:144:3,
    <stdin>:145:3,
    <stdin>:146:3,
    <stdin>:147:3,
    <stdin>:148:3,
    <stdin>:149:3,
    <stdin>:150:3,
    <stdin>:151:3,
    <stdin>:152:3,
    <stdin>:153:3,
    <stdin>:154:3,
    <stdin>:155:3,
    <stdin>:156:3,
    <stdin>:157:3,
    <stdin>:158:3,
    <stdin>:159:3,
    <stdin>:160:3,
    <stdin>:161:3,
    <stdin>:162:3,
    <stdin>:163:3,
    <stdin>:164:3,
    <stdin>:165:3,
    <stdin>:166:3,
    <stdin>:167:3,
    <stdin>:168:3,
    <stdin>:169:3,
    <stdin>:170:3,
    <stdin>:171:3,
    <stdin>:172:3,
    <stdin>:173:3,
    <stdin>:174:3,
    <stdin>:175:3,
    <stdin>:176:3,
    <stdin>:177:3,
    <stdin>:178:3,
    <stdin>:179:3,
    <stdin>:180:3,
    <stdin>:181:3,
    <stdin>:182:3,
    <stdin>:183:3,
    <stdin>:184:3,
    <stdin>:185:3,
    <stdin>:186:3,
    <stdin>:187:3,
    <stdin>:188:3,
    <stdin>:189:3,
    <stdin>:190:3,
    <stdin>:191:3,
    <stdin>:192:3,
    <stdin>:193:3,
    <stdin>:194:3,
    <stdin>:195:3,
    <stdin>:196:3,
    <stdin>:197:3,
    <stdin>:198:3,
    <stdin>:199:3,
    <stdin>:200:3,
    <stdin>:201:3,
    <stdin>:202:3,
    <stdin>:203:3,
    <stdin>:204:3,
    <stdin>:205:3,
    <stdin>:206:3,
    <stdin>:207:3,
    <stdin>:208:3,
    <stdin>:209:3,
    <stdin>:210:3,
    <stdin>:211:3,
    <stdin>:212:3,
    <stdin>:213:3,
    <stdin>:214:3,
    <stdin>:215:3,
    <stdin>:216:3,
    <stdin>:217:3,
    <stdin>:218:3,
    <stdin>:219:3,
    <stdin>:220:3,
    <stdin>:221:3,
    <stdin>:222:3,
    <stdin>:223:3,
    <stdin>:224:3,
    <stdin>:225:3,
    <stdin>:226:3,
    <stdin>:227:3,
    <stdin>:228:3,
    <stdin>:229:3,
    <stdin>:230:3,
    <stdin>:231:3,
    <stdin>:232:3,
    <stdin>:233:3,
    <stdin>:234:3,
    <stdin>:235:3,
    <stdin>:236:3,
    <stdin>:237:3,
    <stdin>:238:3,
    <stdin>:239:3,
    <stdin>:240:3,
    <stdin>:241:3,
    <stdin>:242:3,
    <stdin>:243:3,
    <stdin>:244:3,
    <stdin>:245:3,
    <stdin>:246:3,
    <stdin>:247:3,
    <stdin>:248:3,
    <stdin>:249:3,
    <stdin>:250:3,
    <stdin>:251:3,
    <stdin>:252:3,
    <stdin>:253:3,
    <stdin>:254:3,
    <stdin>:255:3,
    <stdin>:256:3,
    <stdin>:257:3,
    <stdin>:258:3,
    <stdin>:259:3,
    <stdin>:260:3,
    <stdin>:261:3,
    <stdin>:262:3,
    <stdin>:263:3,
    <stdin>:264:3,
    <stdin>:265:3,
    <stdin>:266:3,
    <stdin>:267:3,
    <stdin>:268:3,
    <stdin>:269:3,
    <stdin>:270:3,
    <stdin>:271:3,
    <stdin>:272:3,
    <stdin>:273:3,
    <stdin>:274:3,
    <stdin>:275:3,
    <stdin>:276:3,
    <stdin>:277:3,
    <stdin>:278:3,
    <stdin>:279:3,
    <stdin>:280:3,
    <stdin>:281:3,
    <stdin>:282:3,
    <stdin>:283:3,
    <stdin>:284:3,
    <stdin>:285:3,
    <stdin>:286:3,
    <stdin>:287:3,
    <stdin>:288:3,
    <stdin>:289:3,
    <stdin>:290:3,
    <stdin>:291:3,
    <stdin>:292:3,
    <stdin>:293:3,
    <stdin>:294:3,
    <stdin>:295:3,
    <stdin>:296:3,
    <stdin>:297:3,
    <stdin>:298:3,
    <stdin>:299:3,
    <stdin>:300:3,
    <stdin>:301:3,
    <stdin>:302:3,
    <stdin>:303:3,
    <stdin>:304:3,
    <stdin>:305:3,
    <stdin>:306:3,
    <stdin>:307:3,
    <stdin>:308:3,
    <stdin>:309:3,
    <stdin>:310:3,
    <stdin>:311:3,
    <stdin>:312:3,
    <stdin>:313:3,
    <stdin>:314:3,
    <stdin>:315:3,
    <stdin>:316:3,
    <stdin>:317:3,
    <stdin>:318:3,
    <stdin>:319:3,
    <stdin>:320:3,
    <stdin>:321:3,
    <stdin>:322:3,
    <stdin>:323:3,
    <stdin>:324:3,
    <stdin>:325:3,
    <stdin>:326:3,
    <stdin>:327:3,
    <stdin>:328:3,
    <stdin>:329:3,
    <stdin>:330:3,
    <stdin>:331:3,
    <stdin>:332:3,
    <stdin>:333:3,
    <stdin>:334:3,
    <stdin>:335:3,
    <stdin>:336:3,
    <stdin>:337:3,
    <stdin>:338:3,
    <stdin>:339:3,
    <stdin>:340:3,
    <stdin>:341:3,
    <stdin>:342:3,
    <stdin>:343:3,
    <stdin>:344:3,
    <stdin>:345:3,
    <stdin>:346:3,
    <stdin>:347:3,
    <stdin>:348:3,
    <stdin>:349:3,
    <stdin>:350:3,
    <stdin>:351:3,
    <stdin>:352:3,
    <stdin>:353:3,
    <stdin>:354:3,
    <stdin>:355:3,
    <stdin>:356:3,
    <stdin>:357:3,
    <stdin>:358:3,
    <stdin>:359:3,
    <stdin>:360:3,
    <stdin>:361:3,
    <stdin>:362:3,
    <stdin>:363:3,
    <stdin>:364:3,
    <stdin>:365:3,
    <stdin>:366:3,
    <stdin>:367:3,
    <stdin>:368:3,
    <stdin>:369:3,
    <stdin>:370:3,
    <stdin>:371:3,
    <stdin>:372:3,
    <stdin>:373:3
  ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant