Skip to content
New issue

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

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

Already on GitHub? # to your account

Kernel and program error with AMD GPU #3

Open
horitaku1124 opened this issue Mar 23, 2018 · 0 comments
Open

Kernel and program error with AMD GPU #3

horitaku1124 opened this issue Mar 23, 2018 · 0 comments

Comments

@horitaku1124
Copy link

Hi

I have tested on various environments(macOS, EC2 GPU, GPUEater).
It worked on macOS and EC2 GPU, but I got error with AMD GPU

These I faced situation.

  1. I got error and modified source code.
/tmp/AMD_735_19/t_735_21.cl:12:13: error: access qualifier can only be used for pipe and image type
            __read_only global const half *krn,
            ^
/tmp/AMD_735_19/t_735_21.cl:13:13: error: access qualifier can only be used for pipe and image type
            __read_only global const half *bias,
            ^
/tmp/AMD_735_19/t_735_21.cl:14:13: error: access qualifier can only be used for pipe and image type
            __read_only global const float *in,
            ^
/tmp/AMD_735_19/t_735_21.cl:15:13: error: access qualifier can only be used for pipe and image type
            __write_only global float *out,
            ^
/tmp/AMD_735_19/t_735_21.cl:55:13: error: access qualifier can only be used for pipe and image type
            __read_only global const float *in,
            ^
/tmp/AMD_735_19/t_735_21.cl:56:13: error: access qualifier can only be used for pipe and image type
            __write_only global half *out
            ^
6 errors generated.

I could be fixed by removing __read_only , __write_only.

  1. stopped code at Kotlin source, this is error log.
[scale2] %.1f%% - ELA: 0.0 - ETA: 00:00:03 - MEM: 596:31:23 com.jogamp.opencl.CLException$CLInvalidArgSizeException: error setting arg 7 to value java.nio.DirectByteBuffer[pos=0 lim=24 cap=24] of size 8 of CLKernel [id: 140470940142384 name: waifu2x] [error: CL_INVALID_ARG_SIZE]
	at com.jogamp.opencl.CLException.newException(CLException.java:84)
	at com.jogamp.opencl.CLKernel.setArgument(CLKernel.java:266)
	at com.jogamp.opencl.CLKernel.setArg(CLKernel.java:194)
	at com.jogamp.opencl.CLKernel.putArg(CLKernel.java:126)
	at com.soywiz.kaifu2x.Kaifu2xOpencl.waifu2x(Kaifu2x.kt:285)
	at com.soywiz.kaifu2x.Kaifu2xOpencl.waifu2x(Kaifu2x.kt:310)
	at com.soywiz.kaifu2x.Kaifu2xOpencl.waifu2x(Kaifu2x.kt:327)
	at com.soywiz.kaifu2x.Kaifu2xOpencl.waifu2x(Kaifu2x.kt:355)
	at com.soywiz.kaifu2x.Kaifu2xOpencl.waifu2xChunkedYCbCr(Kaifu2x.kt:398)
	at com.soywiz.kaifu2x.Kaifu2xOpencl.waifu2xChunkedRgba(Kaifu2x.kt:439)
	at com.soywiz.kaifu2x.Kaifu2xOpencl.waifu2xChunkedRgbaFast(Kaifu2x.kt:455)
	at com.soywiz.kaifu2x.Kaifu2x$scaleRgba$2.doResume(Kaifu2x.kt:551)
	at com.soywiz.kaifu2x.Kaifu2x$scaleRgba$2.invoke(Kaifu2x.kt)
	at com.soywiz.kaifu2x.Kaifu2x$scaleRgba$2.invoke(Kaifu2x.kt:513)
	at com.soywiz.kaifu2x.Kaifu2xKt.processMeasurer(Kaifu2x.kt:568)
	at com.soywiz.kaifu2x.Kaifu2x.scaleRgba(Kaifu2x.kt:550)
	at com.soywiz.kaifu2x.Kaifu2x.scaleRgba$default(Kaifu2x.kt:545)
	at com.soywiz.kaifu2x.Kaifu2xCli$main$1.doResume(Kaifu2x.kt:101)
	at kotlin.coroutines.experimental.jvm.internal.CoroutineImpl.resume(CoroutineImpl.kt:54)
	at kotlin.coroutines.experimental.jvm.internal.CoroutineImpl.resume(CoroutineImpl.kt:53)
	at kotlin.coroutines.experimental.jvm.internal.CoroutineImpl.resume(CoroutineImpl.kt:53)
	at kotlin.coroutines.experimental.SafeContinuation.resume(SafeContinuationJvm.kt:56)
	at com.soywiz.korio.async.EventLoopJvmAndCSharp.step(EventLoopFactoryJvm.kt:105)
	at com.soywiz.korio.async.EventLoopJvmAndCSharp.loop(EventLoopFactoryJvm.kt:122)
	at com.soywiz.korio.async.EventLoop$Companion.main(EventLoop.kt:46)
	at com.soywiz.korio.async.EventLoop$Companion.main(EventLoop.kt:51)
	at com.soywiz.korio.KorioKt.Korio(Korio.kt:5)
	at com.soywiz.kaifu2x.Kaifu2xCli.main(Kaifu2x.kt:46)

Do you think these error are can fixed?
I am hoping kaifu2x works great jobs.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant