Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Commit

Permalink
Remove deprecated error codes
Browse files Browse the repository at this point in the history
Those error codes are deprecated so we should not reference them any more.

We did not have an internal representation of `cudaErrorApiFailureBase` so I replaced that with `cudaErrorUnknown` which is the numerical predecessor.

Fixes nvbug3896330
  • Loading branch information
miscco committed Jan 26, 2023
1 parent d044fac commit fb1efea
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
2 changes: 1 addition & 1 deletion thrust/system/cuda/detail/error.inl
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class cuda_error_category
{
using namespace cuda::errc;

if(ev < ::cudaErrorApiFailureBase)
if(ev < ::cudaErrorUnknown)
{
return make_error_condition(static_cast<errc_t>(ev));
}
Expand Down
10 changes: 0 additions & 10 deletions thrust/system/cuda/error.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ enum errc_t
memory_allocation = cudaErrorMemoryAllocation,
initialization_error = cudaErrorInitializationError,
launch_failure = cudaErrorLaunchFailure,
prior_launch_failure = cudaErrorPriorLaunchFailure,
launch_timeout = cudaErrorLaunchTimeout,
launch_out_of_resources = cudaErrorLaunchOutOfResources,
invalid_device_function = cudaErrorInvalidDeviceFunction,
Expand All @@ -66,23 +65,14 @@ enum errc_t
invalid_symbol = cudaErrorInvalidSymbol,
map_buffer_object_failed = cudaErrorMapBufferObjectFailed,
unmap_buffer_object_failed = cudaErrorUnmapBufferObjectFailed,
invalid_host_pointer = cudaErrorInvalidHostPointer,
invalid_device_pointer = cudaErrorInvalidDevicePointer,
invalid_texture = cudaErrorInvalidTexture,
invalid_texture_binding = cudaErrorInvalidTextureBinding,
invalid_channel_descriptor = cudaErrorInvalidChannelDescriptor,
invalid_memcpy_direction = cudaErrorInvalidMemcpyDirection,
address_of_constant_error = cudaErrorAddressOfConstant,
texture_fetch_failed = cudaErrorTextureFetchFailed,
texture_not_bound = cudaErrorTextureNotBound,
synchronization_error = cudaErrorSynchronizationError,
invalid_filter_setting = cudaErrorInvalidFilterSetting,
invalid_norm_setting = cudaErrorInvalidNormSetting,
mixed_device_execution = cudaErrorMixedDeviceExecution,
cuda_runtime_unloading = cudaErrorCudartUnloading,
unknown = cudaErrorUnknown,
not_yet_implemented = cudaErrorNotYetImplemented,
memory_value_too_large = cudaErrorMemoryValueTooLarge,
invalid_resource_handle = cudaErrorInvalidResourceHandle,
not_ready = cudaErrorNotReady,
insufficient_driver = cudaErrorInsufficientDriver,
Expand Down

0 comments on commit fb1efea

Please sign in to comment.