Problem using tex3D(...) problem at compilation time

hi everybody,

I am having a strange compilation error :

1>### Assertion failure at line 123 of …/…/be/cg/NVISA/expand.cxx:

1>### Compiler Error in file C:\Users\YBENAA~1\AppData\Local\Temp/tmpxft_00001608_00000000-9_Cuda.cpp3.i during Code_Expansion phase:

1>### unexpected mtype

1>nvopencc ERROR: C:\CUDA\bin/…/open64/lib//be.exe returned non-zero status 1

when using the fucntion text3D(tex,0,0,0); (tex is initialized and filled correcty)

this is the code source :

...

		int pipi = _pipi;

		ray_position[0]*=Interpolation;

		ray_position[1]*=Interpolation;

		ray_position[2]*=Interpolation;

		ray_increment[0]*=Interpolation;

		ray_increment[1]*=Interpolation;

		ray_increment[2]*=Interpolation;

		for(; kk <= nbr_loops; ) // pour chaque slice à partir du premier (le plus proche)

		{

			I = (int)(ray_position[0]);

			J = (int)(ray_position[1]);

			K = (int)(ray_position[2]);

			

			valeur16 = tex3D(tex, 0, 0,0);

			if(VP_ISMASK_TEMP(valeur16))

			{

				ok = (_Mask & VP_SEGMENTATION_MASK_TEMP);

			}

			else

			{

				MASK = VP_GETMASK(valeur16);

				switch(MASK)

				{

				case VP_MASK_VISIBLE:

					ok = (_Mask & VP_SEGMENTATION_MASK_VISIBLE);

					break;

				case VP_MASK_TABLE:

					ok = (_Mask & VP_SEGMENTATION_MASK_TABLE);

					break;

				case VP_MASK_VASCULAR:

					ok = (_Mask & VP_SEGMENTATION_MASK_VASCULAR);

					break;

				case VP_MASK_OS:

					ok = (_Mask & VP_SEGMENTATION_MASK_OS);

					break;

				case VP_MASK_CALCIFICATION:

					ok = (_Mask & VP_SEGMENTATION_MASK_CALCIFICATIONS);

					break;

				case VP_MASK_INVISIBLE:

					ok = (_Mask & VP_SEGMENTATION_MASK_INVISIBLE);

					break;

				default:

					ok = FALSE;

					break;

				}

			}

...

did some one have and idea why this hapens ?

think you

It’s hard to say without seeing the full code, but the compiler should never crash like this. Please file a bug.