Skip to content

Commit 8ab0bed

Browse files
tangjj11TejaX-Alaghari
authored andcommitted
[SYCLomatic #1345] Build text_experimental_obj related cases on cpu/gpu. (#599)
Signed-off-by: Tang, Jiajun [email protected]
1 parent 7c1f947 commit 8ab0bed

File tree

7 files changed

+11
-23
lines changed

7 files changed

+11
-23
lines changed

features/config/TEMPLATE_image_skip_cpu_gpu.xml

Lines changed: 0 additions & 13 deletions
This file was deleted.

features/feature_case/image/text_experimental_build_only.cu

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ void Runtime_MemoryManagement() {
5656
void Runtime_TextureObjectManagement() {
5757
int i = 1;
5858
cudaChannelFormatKind k = cudaChannelFormatKindSigned;
59-
cudaTextureObject_t o{0}; // TODO: need not "{0}".
59+
cudaTextureObject_t o;
6060
cudaResourceDesc r;
6161
cudaTextureDesc t;
6262
// cudaResourceViewDesc v; // TODO: need support.
@@ -101,7 +101,7 @@ void Driver_MemoryManagement() {
101101
}
102102

103103
void Driver_TextureObjectManagement() {
104-
CUtexObject o{0}; // TODO: need not "{0}".
104+
CUtexObject o;
105105
CUDA_RESOURCE_DESC R;
106106
CUDA_TEXTURE_DESC T;
107107
// CUDA_RESOURCE_VIEW_DESC V; // TODO: need support.
@@ -116,7 +116,7 @@ int main() {
116116
Runtime_TextureObjectManagement();
117117
Driver_MemoryManagement();
118118
Driver_TextureObjectManagement();
119-
cudaTextureObject_t tex{0}; // TODO: need not "{0}".
119+
cudaTextureObject_t tex;
120120
CppLanguageExtensions_TextureFunctions<<<1, 1>>>(tex);
121121
return 0;
122122
}

features/feature_case/image/text_experimental_obj_array.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ getTex(cudaArray_t input,
106106
texDesc.filterMode = textureFilterMode;
107107
texDesc.normalizedCoords = normalizedCoords;
108108

109-
cudaTextureObject_t tex{0}; // TODO: need not "{0}".
109+
cudaTextureObject_t tex;
110110
cudaCreateTextureObject(&tex, &resDesc, &texDesc, NULL);
111111

112112
return tex;

features/feature_case/image/text_experimental_obj_linear.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ cudaTextureObject_t getTex(void *input, cudaChannelFormatDesc desc,
7474
cudaTextureDesc texDesc;
7575
memset(&texDesc, 0, sizeof(texDesc));
7676

77-
cudaTextureObject_t tex{0}; // TODO: need not "{0}".
77+
cudaTextureObject_t tex;
7878
cudaCreateTextureObject(&tex, &resDesc, &texDesc, NULL);
7979

8080
return tex;

features/feature_case/image/text_experimental_obj_pitch2d.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ getTex(void *input, size_t w, size_t h, cudaChannelFormatDesc desc,
116116
texDesc.filterMode = textureFilterMode;
117117
texDesc.normalizedCoords = normalizedCoords;
118118

119-
cudaTextureObject_t tex{0}; // TODO: need not "{0}".
119+
cudaTextureObject_t tex;
120120
cudaCreateTextureObject(&tex, &resDesc, &texDesc, NULL);
121121

122122
return tex;

features/features.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -309,9 +309,9 @@
309309
<test testName="image" configFile="config/TEMPLATE_image.xml" />
310310
<test testName="text_experimental_build_only" configFile="config/TEMPLATE_image.xml" />
311311
<test testName="text_experimental_build_only_before12" configFile="config/TEMPLATE_image_before_12.xml" />
312-
<test testName="text_experimental_obj_array" configFile="config/TEMPLATE_image_skip_cpu_gpu.xml" />
313-
<test testName="text_experimental_obj_linear" configFile="config/TEMPLATE_image_skip_cpu_gpu.xml" />
314-
<test testName="text_experimental_obj_pitch2d" configFile="config/TEMPLATE_image_skip_cpu_gpu.xml" />
312+
<test testName="text_experimental_obj_array" configFile="config/TEMPLATE_image.xml" />
313+
<test testName="text_experimental_obj_linear" configFile="config/TEMPLATE_image.xml" />
314+
<test testName="text_experimental_obj_pitch2d" configFile="config/TEMPLATE_image.xml" />
315315
<test testName="text_obj_array" configFile="config/TEMPLATE_image_skip_cuda.xml" />
316316
<test testName="text_obj_linear" configFile="config/TEMPLATE_image_skip_cuda.xml" />
317317
<test testName="text_obj_pitch2d" configFile="config/TEMPLATE_image_skip_cuda.xml" />

features/test_feature.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
'cudnn-GetErrorString', 'cub_device_histgram', 'peer_access',
4343
'cudnn-types', 'cudnn-version', 'cudnn-dropout', 'const_opt',
4444
'constant_attr', 'sync_warp_p2', 'occupancy_calculation',
45-
'text_experimental_obj_array', 'text_experimental_obj_linear', 'text_experimental_obj_pitch2d',
4645
'text_obj_array', 'text_obj_linear', 'text_obj_pitch2d', 'match',
4746
'thrust-unique_by_key', 'cufft_test', 'cufft-external-workspace', "pointer_attributes", 'math_intel_specific', 'math-drcp', 'thrust-pinned-allocator', 'driverMem',
4847
'cusolver_test1', 'cusolver_test2', 'cusolver_test3', 'cusolver_test4', 'cusolver_test5', 'thrust_op', 'cublas-extension', 'cublas_v1_runable', 'thrust_minmax_element',
@@ -195,6 +194,8 @@ def build_test():
195194
ret = compile_and_link(srcs, cmp_options, objects, link_opts)
196195
elif re.match('^cufft.*', test_config.current_test) and platform.system() == 'Linux':
197196
ret = compile_and_link(srcs, cmp_options, objects, link_opts)
197+
elif test_config.current_test.startswith('text_experimental_obj_') and test_config.device_filter == "cuda:gpu":
198+
ret = compile_and_link(srcs, cmp_options, objects, link_opts)
198199
else:
199200
ret = compile_files(srcs, cmp_options)
200201
return ret

0 commit comments

Comments
 (0)