Started by timer Running as SYSTEM Building in workspace /var/lib/jenkins/jobs/OpenCL/workspace [SSH] script: NODELIST="""" #tar xvf /var/tmp/opencl.tar # import from galen cd opencl # new hydro sw stack testing #cp /var/tmp/checkopencl.sh . # import from galen # when running an opaque script like this, show it in the console output so that others can see what is happening cat -n checkopencl.sh if [ "$NODELIIST" == "" ]; then srun -n1 --partition=a100 --gpus-per-node=1 ~/opencl/checkopencl.sh else srun -n1 --partition=a100 --gpus-per-node=1 --nodelist=$NODELIST ~/opencl/checkopencl.sh fi [SSH] executing... 1 #!/bin/bash 2 # https://www.olcf.ornl.gov/tutorials/opencl-vector-addition/ 3 # https://gist.github.com/courtneyfaulkner/7919509 4 module use /hysw/spack/hydrogpu-2022-06/modules/lmod/Core 5 which nvcc 6 nvcc -o vecAdd vecAdd.c -lOpenCL 7 nvcc -o devices devices.c -lOpenCL 8 nvcc -o platforms platforms.c -lOpenCL 9 ls -lt|head -4 10 echo "vecAdd, output should be 1.0000" 11 ./vecAdd 12 13 echo "platforms:" 14 ./platforms 15 echo "devices:" 16 ./devices 17 18 CUDA_SMS=`./devices | grep "Parallel compute units:"` 19 if [ "$CUDA_SMS" != "" ]; then 20 echo CUDA OpenCL looks good 21 else 22 echo Problem with OpenCL. 23 exit -1 24 fi srun: job 98618 queued and waiting for resources srun: job 98618 has been allocated resources /sw/spack/hydrogpu-2022-06/apps/cuda/11.7.0-gcc-11.3.0-3ysno6b/bin/nvcc total 3144 -rwx------ 1 svchydrojenkins grp_202 798136 Nov 25 11:49 platforms -rwx------ 1 svchydrojenkins grp_202 802240 Nov 25 11:49 devices -rwx------ 1 svchydrojenkins grp_202 803336 Nov 25 11:49 vecAdd vecAdd, output should be 1.0000 final result: 1.000000 platforms: 1. Platform 1.1 Name : NVIDIA CUDA 1.2 Vendor : NVIDIA Corporation 1.3 Version : OpenCL 3.0 CUDA 12.7.33 1.4 Profile : FULL_PROFILE 1.5 Extensions : cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_fp64 cl_khr_3d_image_writes cl_khr_byte_addressable_store cl_khr_icd cl_nv_compiler_options cl_nv_device_attribute_query cl_nv_pragma_unroll cl_nv_copy_opts cl_khr_gl_event cl_nv_create_buffer cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_nv_kernel_attribute cl_khr_device_uuid cl_khr_pci_bus_info cl_khr_external_semaphore cl_khr_external_memory cl_khr_external_semaphore_opaque_fd cl_khr_external_memory_opaque_fd cl_khr_semaphore devices: 1. Device: NVIDIA A100 80GB PCIe 1.1 Hardware version: OpenCL 3.0 CUDA 1.2 Software version: 565.57.01 1.3 OpenCL C version: OpenCL C 1.2 1.4 Parallel compute units: 108 CUDA OpenCL looks good [SSH] completed [SSH] exit-status: 0 Finished: SUCCESS