Closed Echostorm44 closed 1 year ago
Hi,
I guess that the '
at the beginning and end of your PTX are just formatting issues of github? If not, they shouldn't be there. The other thing I'd guess is the fact that your PTX is targeted for sm_35
which support was dropped with cuda 12. Not sure if they still should be able to compile the PTX though.
I'd try to compile the original kernel source file with the same cuda toolkit version as the cuda runtime version you use (cuda 12.1
) which is apperently not the case and set a supported minimum target version of sm_5
.
Cheers, Michael
And wait, why do you have lines like for (unsigned j = 0; j < d - 1; j++) {
in your PTX file? This is not valid PTX so the error message seams right - is this really compiled PTX from cuda source code?
This is my bad, thanks!
Hi there. New to this and having trouble troubleshooting this error:
CUDA Info
PTX contents
`.version 7.5 .target sm_35 .address_size 64
.visible .entry LucasLehmerPrimalityTest( .param .u64 exponent, .param .u64 s, .param .u64 result) { .reg .u64 a; .reg .u64 b; .reg .u64 c;
}
.visible .entry MillerRabinPrimalityTest( .param .u64 n, .param .u32 iterations, .param .u64 d, .param .u32 result) { .reg .u64 a; .reg .u64 x; .reg .u32 i;
}
.visible .func (.param .u64 a, .param .u64 b, .param .u64 mod) pow_mod( .param .u64 a, .param .u64 b, .param .u64 mod) { .reg .u64 res; .reg .u64 mul;
}`
Any Ideas?