mitsuba-renderer / mitsuba2

Mitsuba 2: A Retargetable Forward and Inverse Renderer
Other
2.05k stars 266 forks source link

[❔ other question]runtime API error = 0719 #626

Closed JakeXin7 closed 2 years ago

JakeXin7 commented 2 years ago

System configuration

Description

I try to optimize the texture, but sometimes I get the error : "cuda_check(): runtime API error = 0719 "cudaErrorLaunchFailure" in path_to_mitsuba2/ext/enoki/src/cuda/horiz.cu:88." What's wrong with it and how can I avoid this error?

Here's the main code:

params = traverse(scene)
params.keep(['texture.reflectance.data'])

iterations = 10000
opt = Adam(params, lr=0.01)

for it in range(iterations):
    image = render(scene, optimizer=opt, unbiased=True, spp=4)
    loss = ek.hsum(ek.sqr(image - image_ref)) / len(image)
    ek.backward(loss)
    opt.step()
    print('Iteration %03i: ' % it, 'loss=%g' % loss[0])
Speierers commented 2 years ago

Hi @JakeXin7 ,

I would recommand you take a look at Mitsuba 3. The system was completely redesign and such issues should be fixed.